mirror of
https://github.com/libressl/portable.git
synced 2026-01-17 21:51:17 +01:00
Land #1190 - fix resolv.h and arpa/nameser.h detection
Change-Id: I6a6a6964e97961b85bb743940f38aa31c19004bd
This commit is contained in:
@@ -378,6 +378,16 @@ if(HAVE_NETINET_IP_H)
|
||||
add_definitions(-DHAVE_NETINET_IP_H)
|
||||
endif()
|
||||
|
||||
check_include_files(resolv.h HAVE_RESOLV_H)
|
||||
if(HAVE_RESOLV_H)
|
||||
add_definitions(-DHAVE_RESOLV_H)
|
||||
endif()
|
||||
|
||||
check_include_files(arpa/nameser.h HAVE_ARPA_NAMESER_H)
|
||||
if(HAVE_ARPA_NAMESER_H)
|
||||
add_definitions(-DHAVE_ARPA_NAMESER_H)
|
||||
endif()
|
||||
|
||||
# This isn't ready for universal binaries yet, since we do conditional
|
||||
# compilation based on the architecture, but this makes cross compiling for a
|
||||
# single architecture work on macOS at least.
|
||||
|
||||
Reference in New Issue
Block a user