diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-21 02:43:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-21 02:43:45 +0000 |
commit | b8b5d27a138f32c6e400932fa8828a380a03d1d7 (patch) | |
tree | 3b7fc195f3c325bb312a6f2bbab0f216d91ed425 /src/sysdeps/trysopeercred.c | |
parent | c20608b2b2cc91367ecc2d8fe5e4cc9d4b709285 (diff) | |
download | skalibs-b8b5d27a138f32c6e400932fa8828a380a03d1d7.tar.xz |
OK, this one works, and the problem was actually on my side (failure to
use CMSG_LEN where required in tryancilautoclose).
Also, good news: the sys/param.h inclusion in FreeBSD isn't necessary
anymore.
Diffstat (limited to 'src/sysdeps/trysopeercred.c')
-rw-r--r-- | src/sysdeps/trysopeercred.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/sysdeps/trysopeercred.c b/src/sysdeps/trysopeercred.c index 0356fcf..a6c6806 100644 --- a/src/sysdeps/trysopeercred.c +++ b/src/sysdeps/trysopeercred.c @@ -4,19 +4,14 @@ #undef _XOPEN_SOURCE #ifndef _XPG4_2 -# define _XPG4_2 +#define _XPG4_2 #endif #ifndef _GNU_SOURCE -# define _GNU_SOURCE +#define _GNU_SOURCE #endif #include <sys/types.h> - -#if defined(__FreeBSD__) -# include <sys/param.h> -#endif - #include <sys/socket.h> #include <sys/un.h> |