diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-08-31 16:15:01 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-08-31 16:15:01 +0000 |
commit | b837d5e008fbd4c57558320988018bd8239a5a34 (patch) | |
tree | 3ca0646f8dc86e24b9ccd675ea8cdb578b9601b3 | |
parent | 8269477acc56e3c20bb5a0d5f1a430b524597e12 (diff) |
mhd_sockets.h: improved compatibility with old platforms
-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 @@ * for socket function. */ #if defined(MHD_POSIX_SOCKETS) +# ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> /* required on old platforms */ +# endif # ifdef HAVE_SYS_SOCKET_H # include <sys/socket.h> # endif @@ -95,9 +98,6 @@ # ifdef HAVE_STRING_H # include <string.h> /* for strerror() */ # endif -# if defined(HAVE_SYS_TYPES_H) -# include <sys/types.h> /* required on old platforms */ -# endif /* (!HAVE_SYS_SOCKET_H || !HAVE_SYS_SOCKET_H) && HAVE_SYS_TYPES_H */ #elif defined(MHD_WINSOCK_SOCKETS) # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 |