summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-23 11:33:00 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-23 11:39:36 +0200
commit322d0a2a350b63cec13f5e5dff3fc632ba0c5565 (patch)
treeae95f030431073db2035cd35fe82134a2b57536f
parent7f464d1c56468d859c917b5d0c8aa985be48e6db (diff)
downloadouroboros-322d0a2a350b63cec13f5e5dff3fc632ba0c5565.tar.gz
ouroboros-322d0a2a350b63cec13f5e5dff3fc632ba0c5565.zip
build: Remove the gethostbyname check
gethostbyname is included in POSIX 2001. Ouroboros requires at least POSIX 2001 and recommends POSIX 2008 for stable builds.
-rw-r--r--src/ipcpd/shim-udp/CMakeLists.txt17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/ipcpd/shim-udp/CMakeLists.txt b/src/ipcpd/shim-udp/CMakeLists.txt
index 3b740783..cc60cfb7 100644
--- a/src/ipcpd/shim-udp/CMakeLists.txt
+++ b/src/ipcpd/shim-udp/CMakeLists.txt
@@ -15,23 +15,6 @@ include_directories(${CMAKE_BINARY_DIR}/include)
protobuf_generate_c(SHIM_UDP_PROTO_SRCS SHIM_UDP_PROTO_HDRS
shim_udp_messages.proto)
-# Find library needed for gethostbyname.
-include(CheckFunctionExists)
-include(CheckLibraryExists)
-CHECK_FUNCTION_EXISTS("gethostbyname" CMAKE_HAVE_GETHOSTBYNAME)
-IF(NOT CMAKE_HAVE_GETHOSTBYNAME)
- CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
- IF (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
- SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lnsl)
- ELSE (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
- CHECK_LIBRARY_EXISTS("bsd" "gethostbyname" ""
- CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
- IF (CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
- SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lbsd)
- ENDIF (CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
- ENDIF (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
-ENDIF(NOT CMAKE_HAVE_GETHOSTBYNAME)
-
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/shim_udp_config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/shim_udp_config.h")