提交 b054137a 编写于 作者: S Szabolcs Nagy

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

上级 2c241808
...@@ -19,12 +19,14 @@ extern "C" { ...@@ -19,12 +19,14 @@ extern "C" {
#include <bits/socket.h> #include <bits/socket.h>
#ifdef _GNU_SOURCE
struct ucred struct ucred
{ {
pid_t pid; pid_t pid;
uid_t uid; uid_t uid;
gid_t gid; gid_t gid;
}; };
#endif
struct linger struct linger
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册