summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-24 15:02:05 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-24 15:02:05 +0000
commitdfbda8ae1ee98455a488de3a78ae4fd198e57cd4 (patch)
tree1e2d856b719a84249f2e926eaa19f435815832db
parent49629d8d42a4e42070fa7be9b00edc6ed2eafbb1 (diff)
mhd_sockets.h: improved header inclusion macros.
-rw-r--r--src/microhttpd/mhd_sockets.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index 0aa2aaac..1d68fa44 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -52,7 +52,7 @@
* for socket function.
*/
#if defined(MHD_POSIX_SOCKETS)
-# if HAVE_SYS_SOCKET_H
+# ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
# endif
# if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS)
@@ -67,28 +67,28 @@
# ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
# endif /* HAVE_NETINET_IN_H */
-# if HAVE_ARPA_INET_H
+# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
# ifdef HAVE_NET_IF_H
# include <net/if.h>
# endif
-# if HAVE_SYS_TIME_H
+# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# endif
-# if HAVE_TIME_H
+# ifdef HAVE_TIME_H
# include <time.h>
# endif
-# if HAVE_NETDB_H
+# ifdef HAVE_NETDB_H
# include <netdb.h>
# endif
-# if HAVE_SYS_SELECT_H
+# ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
# endif
# if EPOLL_SUPPORT
# include <sys/epoll.h>
# endif
-# if HAVE_NETINET_TCP_H
+# ifdef HAVE_NETINET_TCP_H
/* for TCP_FASTOPEN and TCP_CORK */
# include <netinet/tcp.h>
# endif