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

This commit is contained in:
Szabolcs Nagy 2013-12-04 21:39:52 +00:00
parent 2c2418088d
commit b054137a64
1 changed files with 2 additions and 0 deletions

View File

@ -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
{