瀏覽代碼

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
 {