diff options
Diffstat (limited to 'src/microhttpd/mhd_sockets.h')
-rw-r--r-- | src/microhttpd/mhd_sockets.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h index f06da1e5..d13221bc 100644 --- a/src/microhttpd/mhd_sockets.h +++ b/src/microhttpd/mhd_sockets.h | |||
@@ -52,6 +52,9 @@ | |||
52 | * for socket function. | 52 | * for socket function. |
53 | */ | 53 | */ |
54 | #if defined(MHD_POSIX_SOCKETS) | 54 | #if defined(MHD_POSIX_SOCKETS) |
55 | # ifdef HAVE_SYS_TYPES_H | ||
56 | # include <sys/types.h> /* required on old platforms */ | ||
57 | # endif | ||
55 | # ifdef HAVE_SYS_SOCKET_H | 58 | # ifdef HAVE_SYS_SOCKET_H |
56 | # include <sys/socket.h> | 59 | # include <sys/socket.h> |
57 | # endif | 60 | # endif |
@@ -95,9 +98,6 @@ | |||
95 | # ifdef HAVE_STRING_H | 98 | # ifdef HAVE_STRING_H |
96 | # include <string.h> /* for strerror() */ | 99 | # include <string.h> /* for strerror() */ |
97 | # endif | 100 | # endif |
98 | # if defined(HAVE_SYS_TYPES_H) | ||
99 | # include <sys/types.h> /* required on old platforms */ | ||
100 | # endif /* (!HAVE_SYS_SOCKET_H || !HAVE_SYS_SOCKET_H) && HAVE_SYS_TYPES_H */ | ||
101 | #elif defined(MHD_WINSOCK_SOCKETS) | 101 | #elif defined(MHD_WINSOCK_SOCKETS) |
102 | # ifndef WIN32_LEAN_AND_MEAN | 102 | # ifndef WIN32_LEAN_AND_MEAN |
103 | # define WIN32_LEAN_AND_MEAN 1 | 103 | # define WIN32_LEAN_AND_MEAN 1 |