fix build on OpenBSD

pull/74/head
Aaron Bieber 8 years ago committed by Daniel Stenberg
parent 2f467d20a6
commit b0af263838
  1. 3
      CMakeLists.txt
  2. 2
      ares.h

@ -460,7 +460,8 @@ IF (HAVE_GETSERVBYPORT_R)
# TODO : Should probably autodetect
IF (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
SET (GETSERVBYPORT_R_ARGS 5)
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "AIX")
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
SET (GETSERVBYPORT_R_ARGS 4)
ELSE ()
# Probably linux

@ -38,7 +38,7 @@
require it! */
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
defined(ANDROID) || defined(__ANDROID__)
defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__)
#include <sys/select.h>
#endif
#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))

Loading…
Cancel
Save