aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-31 16:15:01 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-31 16:15:01 +0000
commitb837d5e008fbd4c57558320988018bd8239a5a34 (patch)
tree3ca0646f8dc86e24b9ccd675ea8cdb578b9601b3
parent8269477acc56e3c20bb5a0d5f1a430b524597e12 (diff)
downloadlibmicrohttpd-b837d5e008fbd4c57558320988018bd8239a5a34.tar.gz
libmicrohttpd-b837d5e008fbd4c57558320988018bd8239a5a34.zip
mhd_sockets.h: improved compatibility with old platforms
-rw-r--r--src/microhttpd/mhd_sockets.h6
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