0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

added windows includes as well as unix includes

added conditional includes for unix / windows
This commit is contained in:
Michael 2016-02-06 23:19:10 +11:00
parent 75bea4bc13
commit d06314df84

View File

@ -2,8 +2,18 @@
#include <string.h>
#include <stdio.h>
#include <netinet/in.h>
#include <unistd.h>
#include "testutil.hpp"
#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>