1 AC_DEFUN([CONFIG_EXTRA], [
5 #if defined(__cplusplus)
13 #if !defined(HAVE_ULONG) && !defined(__USE_MISC)
15 typedef unsigned long int ulong;
22 #define _WIN32_WINNT 0x0501
25 /* To hide the platform differences between MS Windows and Unix, I am
26 * going to use the Microsoft way and #define the Microsoft-specific
27 * functions to the unix way. Microsoft use a separate subsystem for sockets,
28 * but Unix normally just use a filedescriptor on the same functions. It is
29 * a lot easier to map back to the unix way with macros than going the other
30 * way without side effect ;-)
33 #include "win32/wrappers.h"
34 #define get_socket_errno() WSAGetLastError()
36 #define INVALID_SOCKET -1
37 #define SOCKET_ERROR -1
38 #define closesocket(a) close(a)
39 #define get_socket_errno() errno
42 #ifndef HAVE_MSG_NOSIGNAL
43 #define MSG_NOSIGNAL 0
46 #ifndef HAVE_MSG_DONTWAIT
47 #define MSG_DONTWAIT 0