Commit 53aa028d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Philipp Schafft
Browse files

Fix: test arpa/inet.h presence before using it

This fixes the Windows build.
parent e12e4301
......@@ -74,7 +74,7 @@ dnl Checks for programs.
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS([strings.h sys/timeb.h])
AC_CHECK_HEADERS([strings.h sys/timeb.h arpa/inet.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
......
......@@ -28,7 +28,9 @@
#endif
/* for htonl(). */
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <stdio.h>
#include <stdlib.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment