summaryrefslogtreecommitdiff
path: root/src/sysdeps/trysopeercred.c
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/sysdeps/trysopeercred.c
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/sysdeps/trysopeercred.c')
-rw-r--r--src/sysdeps/trysopeercred.c9
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>