about summary refs log tree commit diff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 9e0b9a37..82edd6f7 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -19,12 +19,14 @@ extern "C" {
 
 #include <bits/socket.h>
 
+#ifdef _GNU_SOURCE
 struct ucred
 {
 	pid_t pid;
 	uid_t uid;
 	gid_t gid;
 };
+#endif
 
 struct linger
 {