summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-12-04 21:39:52 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-12-04 21:39:52 +0000
commitb054137a640c7fd0acb6cc9c4edda055465b15be (patch)
tree4d92b757dd86a1666ad67c910f1a1143d33d99ce
parent2c2418088d07a2ecb0ecafd8c950bfd38ebf916b (diff)
downloadmusl-b054137a640c7fd0acb6cc9c4edda055465b15be.tar.gz
musl-b054137a640c7fd0acb6cc9c4edda055465b15be.tar.bz2
musl-b054137a640c7fd0acb6cc9c4edda055465b15be.tar.xz
musl-b054137a640c7fd0acb6cc9c4edda055465b15be.zip
move struct ucred under _GNU_SOURCE in sys/socket.h for clean posix namespace
-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
{