AIX Build Fix

AIX attempts to include both nameser_compat.h and onameser_compat.h.  It appears
the proper fix is to define _USE_IRS so that only nameser_compat.h is used.

Bug: #224
Fix By: Brad House (@bradh352)
pull/227/head
Brad House 6 years ago
parent bfd5975854
commit 2164acef44
  1. 2
      CMakeLists.txt

@ -183,7 +183,7 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "Linux")
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
LIST (APPEND SYSFLAGS -D__EXTENSIONS__ -D_REENTRANT -D_XOPEN_SOURCE=600)
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "AIX")
LIST (APPEND SYSFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=600)
LIST (APPEND SYSFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_USE_IRS)
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
# Don't define _XOPEN_SOURCE on FreeBSD, it actually reduces visibility instead of increasing it
ELSEIF (WIN32)

Loading…
Cancel
Save