# HG changeset patch # User Sebastien Jodogne # Date 1515092595 -3600 # Node ID d4fefd84303514ec13192e34c11d0ec92c1729e9 # Parent cd83eec51b622c98509e267f6fbf3cd5ed8d80ae sync diff -r cd83eec51b62 -r d4fefd843035 Orthanc/Resources/CMake/UuidConfiguration.cmake --- a/Orthanc/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 19:05:10 2018 +0100 +++ b/Orthanc/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 20:03:15 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\@