Fix to build on OpenBSD

This commit is contained in:
Rodrigo Mosconi 2014-07-02 21:06:33 -03:00
parent 4706a18cf3
commit 51b3fad8ab
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,9 @@
#ifdef ZMQ_HAVE_SO_PEERCRED
# include <pwd.h>
# include <grp.h>
# if defined ZMQ_HAVE_OPENBSD
# define ucred sockpeercred
# endif
#endif
zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_,

View File

@ -28,6 +28,9 @@
#include <netinet/in.h>
#include <netdb.h>
#include <fcntl.h>
#if defined ZMQ_HAVE_OPENBSD
#define ucred sockpeercred
#endif
#endif
#include <string.h>