Commit 708c2060 authored by Joe Eli McIlvain's avatar Joe Eli McIlvain

Merge pull request #1830 from stevenc99/master

include sys/ucred.h for struct ucred
parents d7691756 dd8ccd5e
......@@ -50,10 +50,12 @@
#include <fcntl.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/ucred.h>
#endif
#ifdef ZMQ_HAVE_SO_PEERCRED
# include <sys/types.h>
# include <pwd.h>
# include <grp.h>
# if defined ZMQ_HAVE_OPENBSD
......
......@@ -42,6 +42,9 @@
#if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED
#include <sys/types.h>
#endif
#ifdef ZMQ_HAVE_LOCAL_PEERCRED
#include <sys/ucred.h>
#endif
// Normal base 256 key is 32 bytes
#define CURVE_KEYSIZE 32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment