mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
Fix to build on OpenBSD
This commit is contained in:
@@ -45,6 +45,9 @@
|
|||||||
#ifdef ZMQ_HAVE_SO_PEERCRED
|
#ifdef ZMQ_HAVE_SO_PEERCRED
|
||||||
# include <pwd.h>
|
# include <pwd.h>
|
||||||
# include <grp.h>
|
# include <grp.h>
|
||||||
|
# if defined ZMQ_HAVE_OPENBSD
|
||||||
|
# define ucred sockpeercred
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_,
|
zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_,
|
||||||
|
|||||||
@@ -28,6 +28,9 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#if defined ZMQ_HAVE_OPENBSD
|
||||||
|
#define ucred sockpeercred
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user