projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c24180
)
move struct ucred under _GNU_SOURCE in sys/socket.h for clean posix namespace
author
Szabolcs Nagy
<nsz@port70.net>
Wed, 4 Dec 2013 21:39:52 +0000
(21:39 +0000)
committer
Szabolcs Nagy
<nsz@port70.net>
Wed, 4 Dec 2013 21:39:52 +0000
(21:39 +0000)
include/sys/socket.h
patch
|
blob
|
history
diff --git
a/include/sys/socket.h
b/include/sys/socket.h
index 9e0b9a37960a6c64dd98208c95bef3616dbb26fd..82edd6f72b60868ae22468f064445fba57f87947 100644
(file)
--- 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
{