From b8b5d27a138f32c6e400932fa8828a380a03d1d7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 21 Dec 2014 02:43:45 +0000 Subject: 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. --- src/sysdeps/tryipv6.c | 5 ----- src/sysdeps/trylsock.c | 9 ++------- src/sysdeps/trysopeercred.c | 9 ++------- 3 files changed, 4 insertions(+), 19 deletions(-) (limited to 'src/sysdeps') diff --git a/src/sysdeps/tryipv6.c b/src/sysdeps/tryipv6.c index 0c7f306..7a061cc 100644 --- a/src/sysdeps/tryipv6.c +++ b/src/sysdeps/tryipv6.c @@ -7,11 +7,6 @@ #define _XPG6 #include - -#if defined(__FreeBSD__) -# include -#endif - #include #include #include diff --git a/src/sysdeps/trylsock.c b/src/sysdeps/trylsock.c index b5b4413..7e3b501 100644 --- a/src/sysdeps/trylsock.c +++ b/src/sysdeps/trylsock.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 - -#if defined(__FreeBSD__) -# include -#endif - #include int main (void) 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 - -#if defined(__FreeBSD__) -# include -#endif - #include #include -- cgit v1.3.1