Преглед изворни кода

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

Szabolcs Nagy пре 11 година
родитељ
комит
b054137a64
1 измењених фајлова са 2 додато и 0 уклоњено
  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
 {