aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syshead.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/syshead.h b/syshead.h
index bc54ce0..0a3eb14 100644
--- a/syshead.h
+++ b/syshead.h
@@ -85,6 +85,10 @@
#endif
#ifdef HAVE_SYS_SOCKET_H
+# if defined(TARGET_LINUX) && !defined(_GNU_SOURCE)
+ /* needed for peercred support on glibc-2.8 */
+# define _GNU_SOURCE
+# endif
#include <sys/socket.h>
#endif