/usr/local/include/czmq_prelude.h:498:13: error: conflicting declaration ‘typede
f int SOCKET’
typedef int SOCKET;
^
In file included from netbase.h:11:0,
from util.h:33,
from bignum.h:12,
from main.h:10,
from main.hpp:13,
from primeserver.h:13,
from pool.h:13,
from pool.cpp:10:
compat.h:29:15: error: ‘SOCKET’ has a previous declaration as ‘typedef u_int SOC
KET’
typedef u_int SOCKET;
Any ideas?
I make temporary patch:
diff --git a/primeserver/src/compat.h b/primeserver/src/compat.h
index 7062216..c407587 100644
--- a/primeserver/src/compat.h
+++ b/primeserver/src/compat.h
@@ -5,6 +5,8 @@
#ifndef _BITCOIN_COMPAT_H
#define _BITCOIN_COMPAT_H 1
+#include <czmq.h>
+
#ifdef WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN 1
@@ -26,7 +28,7 @@
#include <ifaddrs.h>
#endif
-typedef u_int SOCKET;
+//typedef u_int SOCKET;
#ifdef WIN32
#define MSG_NOSIGNAL 0
#define MSG_DONTWAIT 0
@@ -42,7 +44,7 @@ typedef int socklen_t;
#define WSAEINPROGRESS EINPROGRESS
#define WSAEADDRINUSE EADDRINUSE
#define WSAENOTSOCK EBADF
-#define INVALID_SOCKET (SOCKET)(~0)
+//#define INVALID_SOCKET (SOCKET)(~0)
#define SOCKET_ERROR -1
#endif
@@ -58,7 +60,7 @@ inline int myclosesocket(SOCKET& hSocket)
hSocket = INVALID_SOCKET;
return ret;
}
-#define closesocket(s) myclosesocket(s)
+//#define closesocket(s) myclosesocket(s)
#endif