Lars Gullik Bjønnes wrote:
"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| ../../../lyx/src/client/client.C: In function `int | support::socktools::connect(const std::string&)':
| ../../../lyx/src/client/client.C:118: `SUN_LEN' undeclared (first use this | function)
| ../../../lyx/src/client/client.C:118: (Each undeclared identifier is
| reported


So what does un.h say that SUN_LEN is called on this box?

This is the contents of un.h (/usr/include/sys/un.h) on my box:

/* Structure describing the address of an AF_LOCAL (aka AF_UNIX) socket.  */
struct sockaddr_un
  {
    __SOCKADDR_COMMON (sun_);
    char sun_path[108];         /* Path name.  */
  };


#ifdef __USE_MISC # include <string.h> /* For prototype of `strlen'. */

/* Evaluate to actual length of the `sockaddr_un' structure.  */
# define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path)        \
                      + strlen ((ptr)->sun_path))
#endif



What does it look like on your box?

The complete un.h fills one page only... (for Solaris 2.7)

#ifndef _SYS_UN_H
#define _SYS_UN_H

#pragma ident   "@(#)un.h   1.9 96/07/12 SMI"   /* UCB 7.1 6/4/86 */

#ifdef  __cplusplus
extern "C" {
#endif

#ifndef _SA_FAMILY_T
#define _SA_FAMILY_T
typedef unsigned short sa_family_t;
#endif

/*
 * Definitions for UNIX IPC domain.
 */
struct  sockaddr_un {
    sa_family_t sun_family;     /* AF_UNIX */
    char        sun_path[108];      /* path name (gag) */
};

#ifdef _KERNEL
int unp_discard();
#endif

#ifdef  __cplusplus
}
#endif

#endif /* _SYS_UN_H */



Reply via email to