Commit bc012cb7 authored by Evgeniy Isaev's avatar Evgeniy Isaev Committed by Mouse

Added check for `netinet/in.h` header file availability

parent b660368a
...@@ -263,6 +263,7 @@ AC_SUBST(ASAN_ENV_FLAGS) ...@@ -263,6 +263,7 @@ AC_SUBST(ASAN_ENV_FLAGS)
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AC_CHECK_HEADERS(sys/param.h) AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(netinet/in.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN AC_C_BIGENDIAN
......
...@@ -75,7 +75,9 @@ typedef unsigned int uint32_t; ...@@ -75,7 +75,9 @@ typedef unsigned int uint32_t;
#else /* !defined(__vxworks) */ #else /* !defined(__vxworks) */
#include <inttypes.h> /* C99 specifies this file */ #include <inttypes.h> /* C99 specifies this file */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> /* for ntohl() */ #include <netinet/in.h> /* for ntohl() */
#endif
#define sys_ntohl(foo) ntohl(foo) #define sys_ntohl(foo) ntohl(foo)
#endif /* defined(__vxworks) */ #endif /* defined(__vxworks) */
......
Markdown is supported
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