mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 09:47:56 +08:00
added windows includes as well as unix includes
added conditional includes for unix / windows
This commit is contained in:
parent
75bea4bc13
commit
d06314df84
@ -2,8 +2,18 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include "testutil.hpp"
|
||||||
#include <unistd.h>
|
#if defined (ZMQ_HAVE_WINDOWS)
|
||||||
|
# include <winsock2.h>
|
||||||
|
# include <ws2tcpip.h>
|
||||||
|
# include <stdexcept>
|
||||||
|
# define close closesocket
|
||||||
|
#else
|
||||||
|
# include <sys/socket.h>
|
||||||
|
# include <netinet/in.h>
|
||||||
|
# include <arpa/inet.h>
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <zmq.h>
|
#include <zmq.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user