Fix undefined socket_t with ZeroMQ 2.0.x

pull/10/head
Robert G. Jakabosky 15 years ago
parent c2bc03b0ee
commit a3f912b8aa

@ -1742,14 +1742,12 @@ static const char zmq_ffi_lua_code[] = "-- try loading luajit's ffi\n"
typedef void * ZMQ_Socket;
#if VERSION_2_1
#ifdef _WIN32
#include <winsock2.h>
typedef SOCKET socket_t;
#else
typedef int socket_t;
#endif
#endif
/* socket option types. */
#define OPT_TYPE_NONE 0

@ -35,14 +35,12 @@ typedef void * ZMQ_Socket;
typedef void * ZMQ_Socket;
#if VERSION_2_1
#ifdef _WIN32
#include <winsock2.h>
typedef SOCKET socket_t;
#else
typedef int socket_t;
#endif
#endif
/* socket option types. */
#define OPT_TYPE_NONE 0

Loading…
Cancel
Save