# HG changeset patch # User Sebastien Jodogne # Date 1515092645 -3600 # Node ID b3e0ea3b0746d1ec657ee33cc6f02fe85b5b0a74 # Parent 48b6c529f29e62b22192a99a419a00136ef0b6cb sync diff -r 48b6c529f29e -r b3e0ea3b0746 Orthanc/Resources/CMake/UuidConfiguration.cmake --- a/Orthanc/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 17:38:54 2018 +0100 +++ b/Orthanc/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 20:04:05 2018 +0100 @@ -39,6 +39,16 @@ check_include_file("sys/un.h" HAVE_SYS_UN_H) check_include_file("unistd.h" HAVE_UNISTD_H) + If (NOT HAVE_NET_IF_H) # This is the case of OpenBSD + unset(HAVE_NET_IF_H CACHE) + check_include_files("sys/socket.h;net/if.h" HAVE_NET_IF_H) + endif() + + if (NOT HAVE_NETINET_TCP_H) # This is the case of OpenBSD + unset(HAVE_NETINET_TCP_H CACHE) + check_include_files("sys/socket.h;netinet/tcp.h" HAVE_NETINET_TCP_H) + endif() + file(WRITE ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h.cmake " #cmakedefine HAVE_NET_IF_H \@HAVE_NET_IF_H\@ #cmakedefine HAVE_NET_IF_DL_H \@HAVE_NET_IF_DL_H\@