1 AC_DEFUN([CONFIG_EXTRA], [
6 /* _SYS_FEATURE_TESTS_H is Solaris, _FEATURES_H is GCC */
7 #if defined( _SYS_FEATURE_TESTS_H) || defined(_FEATURES_H)
8 #error "You should include config.h as your first include file"
15 #if defined(__cplusplus)
23 #if !defined(HAVE_ULONG) && !defined(__USE_MISC)
25 typedef unsigned long int ulong;
32 #define _WIN32_WINNT 0x0501
35 /* To hide the platform differences between MS Windows and Unix, I am
36 * going to use the Microsoft way and #define the Microsoft-specific
37 * functions to the unix way. Microsoft use a separate subsystem for sockets,
38 * but Unix normally just use a filedescriptor on the same functions. It is
39 * a lot easier to map back to the unix way with macros than going the other
40 * way without side effect ;-)
43 #include "win32/wrappers.h"
44 #define get_socket_errno() WSAGetLastError()
46 #define INVALID_SOCKET -1
47 #define SOCKET_ERROR -1
48 #define closesocket(a) close(a)
49 #define get_socket_errno() errno
52 #ifndef HAVE_MSG_NOSIGNAL
53 #define MSG_NOSIGNAL 0
56 #ifndef HAVE_MSG_DONTWAIT
57 #define MSG_DONTWAIT 0