# HG changeset patch # User Sebastien Jodogne # Date 1515092624 -3600 # Node ID 7c3e88ed1b044a34fac59da139d99a1c63a5ce97 # Parent 36d4388ed13104540074787a811d74441da07dff sync diff -r 36d4388ed131 -r 7c3e88ed1b04 Orthanc/Resources/CMake/UuidConfiguration.cmake --- a/Orthanc/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 17:38:33 2018 +0100 +++ b/Orthanc/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 20:03:44 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\@