Detect machine/endian.h for macOS
This commit is contained in:
parent
5f5feb2bbc
commit
ef2d6c70da
@ -291,6 +291,11 @@ if(HAVE_ENDIAN_H)
|
|||||||
add_definitions(-DHAVE_ENDIAN_H)
|
add_definitions(-DHAVE_ENDIAN_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
check_include_files(machine/endian.h HAVE_MACHINE_ENDIAN_H)
|
||||||
|
if(HAVE_MACHINE_ENDIAN_H)
|
||||||
|
add_definitions(-DHAVE_MACHINE_ENDIAN_H)
|
||||||
|
endif()
|
||||||
|
|
||||||
check_include_files(err.h HAVE_ERR_H)
|
check_include_files(err.h HAVE_ERR_H)
|
||||||
if(HAVE_ERR_H)
|
if(HAVE_ERR_H)
|
||||||
add_definitions(-DHAVE_ERR_H)
|
add_definitions(-DHAVE_ERR_H)
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
#elif defined(HAVE_ENDIAN_H)
|
#elif defined(HAVE_ENDIAN_H)
|
||||||
#include_next <endian.h>
|
#include_next <endian.h>
|
||||||
|
|
||||||
|
#elif defined(HAVE_MACHINE_ENDIAN_H)
|
||||||
|
#include_next <machine/endian.h>
|
||||||
|
|
||||||
#elif defined(__sun) || defined(_AIX) || defined(__hpux)
|
#elif defined(__sun) || defined(_AIX) || defined(__hpux)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <arpa/nameser_compat.h>
|
#include <arpa/nameser_compat.h>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
AC_DEFUN([CHECK_LIBC_COMPAT], [
|
AC_DEFUN([CHECK_LIBC_COMPAT], [
|
||||||
# Check for libc headers
|
# Check for libc headers
|
||||||
AC_CHECK_HEADERS([endian.h err.h readpassphrase.h])
|
AC_CHECK_HEADERS([endian.h machine/endian.h err.h readpassphrase.h])
|
||||||
AC_CHECK_HEADERS([netinet/ip.h], [], [],
|
AC_CHECK_HEADERS([netinet/ip.h], [], [],
|
||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user