# HG changeset patch # User Sebastien Jodogne # Date 1515089110 -3600 # Node ID cd83eec51b622c98509e267f6fbf3cd5ed8d80ae # Parent b4c17acb5dca3e4eadb37d6b486b35c79f1bde24 fix openbsd diff -r b4c17acb5dca -r cd83eec51b62 Resources/CMake/PostgreSQLConfiguration.cmake --- a/Resources/CMake/PostgreSQLConfiguration.cmake Thu Jan 04 17:39:08 2018 +0100 +++ b/Resources/CMake/PostgreSQLConfiguration.cmake Thu Jan 04 19:05:10 2018 +0100 @@ -216,7 +216,17 @@ check_include_file("netinet/tcp.h" HAVE_NETINET_TCP_H) check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H) check_include_file("sys/un.h" HAVE_SYS_UN_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() + execute_process( COMMAND