From 0adc6f837f5df8ddfa77b0966fdce0524f8a35ae Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 22 Oct 2016 14:06:54 +0200 Subject: build: Fix missing include CheckLibraryExists was not included. Apparently the CHECK_FUNCTION_EXISTS call fails with the strict prototyping flag turned on. --- src/ipcpd/shim-udp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipcpd/shim-udp/CMakeLists.txt b/src/ipcpd/shim-udp/CMakeLists.txt index c63bd29c..3b740783 100644 --- a/src/ipcpd/shim-udp/CMakeLists.txt +++ b/src/ipcpd/shim-udp/CMakeLists.txt @@ -17,6 +17,7 @@ protobuf_generate_c(SHIM_UDP_PROTO_SRCS SHIM_UDP_PROTO_HDRS # 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) -- cgit v1.2.3