move struct ucred under _GNU_SOURCE in sys/socket.h for clean posix namespace
authorSzabolcs Nagy <nsz@port70.net>
Wed, 4 Dec 2013 21:39:52 +0000 (21:39 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Wed, 4 Dec 2013 21:39:52 +0000 (21:39 +0000)
include/sys/socket.h

index 9e0b9a37960a6c64dd98208c95bef3616dbb26fd..82edd6f72b60868ae22468f064445fba57f87947 100644 (file)
@@ -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
 {