Explorar o código

move struct ucred under _GNU_SOURCE in sys/socket.h for clean posix namespace

Szabolcs Nagy %!s(int64=11) %!d(string=hai) anos
pai
achega
b054137a64
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/sys/socket.h

+ 2 - 0
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
 {