summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-21 02:43:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-21 02:43:45 +0000
commitb8b5d27a138f32c6e400932fa8828a380a03d1d7 (patch)
tree3b7fc195f3c325bb312a6f2bbab0f216d91ed425 /src
parentc20608b2b2cc91367ecc2d8fe5e4cc9d4b709285 (diff)
downloadskalibs-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')
-rw-r--r--src/sysdeps/tryipv6.c5
-rw-r--r--src/sysdeps/trylsock.c9
-rw-r--r--src/sysdeps/trysopeercred.c9
3 files changed, 4 insertions, 19 deletions
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 <sys/types.h>
-
-#if defined(__FreeBSD__)
-# include <sys/param.h>
-#endif
-
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
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 <sys/types.h>
-
-#if defined(__FreeBSD__)
-# include <sys/param.h>
-#endif
-
#include <sys/socket.h>
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 <sys/types.h>
-
-#if defined(__FreeBSD__)
-# include <sys/param.h>
-#endif
-
#include <sys/socket.h>
#include <sys/un.h>