"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?

-- 
        Lgb

Reply via email to