This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

The lack of UNIX_PATH_MAX on sys/un.h


Hi!

Recently I have been modifying some of my old code (a UNIX socket based server), and
have begun using another library that is using sys/un.h.

The problem is I was already using linux/un.h and now I face the following error:

/usr/include/linux/un.h:8:8: error: redefinition of ‘struct sockaddr_un’
 struct sockaddr_un {
        ^
In file included from test.c:1:0:
/usr/include/x86_64-linux-gnu/sys/un.h:29:8: note: originally defined here
 struct sockaddr_un
        ^

The change to use sys/un.h is fairly trivial but I was using the UNIX_PATH_MAX
definition.

Is there any reason this isn't defined in glibc? are there any reservations from adding it?

Thanks in advance,
Omri Arad.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]