From b054137a640c7fd0acb6cc9c4edda055465b15be Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 4 Dec 2013 21:39:52 +0000 Subject: move struct ucred under _GNU_SOURCE in sys/socket.h for clean posix namespace --- include/sys/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sys') 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 +#ifdef _GNU_SOURCE struct ucred { pid_t pid; uid_t uid; gid_t gid; }; +#endif struct linger { -- cgit 1.4.1