# HG changeset patch # User Sebastien Jodogne # Date 1515092555 -3600 # Node ID 47029de27a748a505bf342a9086c75c63ab68540 # Parent 292bd85d4532044a5223abd66f1e8e22144c1a36 fix for openbsd diff -r 292bd85d4532 -r 47029de27a74 Resources/CMake/UuidConfiguration.cmake --- a/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 18:37:41 2018 +0100 +++ b/Resources/CMake/UuidConfiguration.cmake Thu Jan 04 20:02:35 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\@