From dd8ccd5e0f8b633b3e6973312443a0fd3075bade Mon Sep 17 00:00:00 2001 From: Steven Chamberlain Date: Mon, 22 Feb 2016 02:21:34 +0000 Subject: [PATCH] include sys/ucred.h for struct ucred Platforms that have struct ucred, typically declare it in sys/ucred.h --- src/ipc_listener.cpp | 4 +++- src/options.hpp | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ipc_listener.cpp b/src/ipc_listener.cpp index dc41715e..6dc915e0 100644 --- a/src/ipc_listener.cpp +++ b/src/ipc_listener.cpp @@ -50,10 +50,12 @@ #include #include -#if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED +#ifdef ZMQ_HAVE_LOCAL_PEERCRED # include +# include #endif #ifdef ZMQ_HAVE_SO_PEERCRED +# include # include # include # if defined ZMQ_HAVE_OPENBSD diff --git a/src/options.hpp b/src/options.hpp index 8d132dda..118b281e 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -42,6 +42,9 @@ #if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED #include #endif +#ifdef ZMQ_HAVE_LOCAL_PEERCRED +#include +#endif // Normal base 256 key is 32 bytes #define CURVE_KEYSIZE 32