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 @@ * 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 |