Merge pull request #1830 from stevenc99/master

include sys/ucred.h for struct ucred
This commit is contained in:
Joe Eli McIlvain 2016-02-28 13:50:58 -08:00
commit 708c2060ee
2 changed files with 6 additions and 1 deletions

View File

@ -50,10 +50,12 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/un.h> #include <sys/un.h>
#if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED #ifdef ZMQ_HAVE_LOCAL_PEERCRED
# include <sys/types.h> # include <sys/types.h>
# include <sys/ucred.h>
#endif #endif
#ifdef ZMQ_HAVE_SO_PEERCRED #ifdef ZMQ_HAVE_SO_PEERCRED
# include <sys/types.h>
# include <pwd.h> # include <pwd.h>
# include <grp.h> # include <grp.h>
# if defined ZMQ_HAVE_OPENBSD # if defined ZMQ_HAVE_OPENBSD

View File

@ -42,6 +42,9 @@
#if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED #if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef ZMQ_HAVE_LOCAL_PEERCRED
#include <sys/ucred.h>
#endif
// Normal base 256 key is 32 bytes // Normal base 256 key is 32 bytes
#define CURVE_KEYSIZE 32 #define CURVE_KEYSIZE 32