summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-13 13:32:09 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-13 13:32:09 +0000
commit0496c0eefab052309893102fc2181921cca3665c (patch)
tree435e8ca8e4ea343faec59fd530f7f8c4da9267cc
parent586aa12ed52686de86adeceb670a88142530afb8 (diff)
downloadskalibs-0496c0eefab052309893102fc2181921cca3665c.tar.xz
maybe maybe maybe
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/sysdeps/trygetpeereid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sysdeps/trygetpeereid.c b/src/sysdeps/trygetpeereid.c
index 87b5017..038448c 100644
--- a/src/sysdeps/trygetpeereid.c
+++ b/src/sysdeps/trygetpeereid.c
@@ -18,9 +18,17 @@
#ifndef _INCOMPLETE_XOPEN_C063
#define _INCOMPLETE_XOPEN_C063
#endif
+#ifndef _ALL_SOURCE
+#define _ALL_SOURCE
+#endif
+
+#ifdef _AIX
+#define __cplusplus /* don't ask */
+#endif
#include <sys/types.h>
#include <unistd.h>
+#include <sys/socket.h>
int main (void)
{