diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-10-22 14:06:54 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-10-22 14:06:54 +0200 |
commit | 0adc6f837f5df8ddfa77b0966fdce0524f8a35ae (patch) | |
tree | f7dc898f96705418d3b6af0d78979aaefa364e3e /src | |
parent | 727efbe0c5e61862a870c71a2857b28eece3d369 (diff) | |
download | ouroboros-0adc6f837f5df8ddfa77b0966fdce0524f8a35ae.tar.gz ouroboros-0adc6f837f5df8ddfa77b0966fdce0524f8a35ae.zip |
build: Fix missing include
CheckLibraryExists was not included. Apparently the
CHECK_FUNCTION_EXISTS call fails with the strict prototyping flag
turned on.
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcpd/shim-udp/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |