comparison Resources/CMake/UuidConfiguration.cmake @ 2461:47029de27a74

fix for openbsd
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jan 2018 20:02:35 +0100
parents 6b3c0d5f65af
children a29ffb73f6fd
comparison
equal deleted inserted replaced
2460:292bd85d4532 2461:47029de27a74
36 check_include_file("sys/sockio.h" HAVE_SYS_SOCKIO_H) 36 check_include_file("sys/sockio.h" HAVE_SYS_SOCKIO_H)
37 check_include_file("sys/syscall.h" HAVE_SYS_SYSCALL_H) 37 check_include_file("sys/syscall.h" HAVE_SYS_SYSCALL_H)
38 check_include_file("sys/time.h" HAVE_SYS_TIME_H) 38 check_include_file("sys/time.h" HAVE_SYS_TIME_H)
39 check_include_file("sys/un.h" HAVE_SYS_UN_H) 39 check_include_file("sys/un.h" HAVE_SYS_UN_H)
40 check_include_file("unistd.h" HAVE_UNISTD_H) 40 check_include_file("unistd.h" HAVE_UNISTD_H)
41
42 If (NOT HAVE_NET_IF_H) # This is the case of OpenBSD
43 unset(HAVE_NET_IF_H CACHE)
44 check_include_files("sys/socket.h;net/if.h" HAVE_NET_IF_H)
45 endif()
46
47 if (NOT HAVE_NETINET_TCP_H) # This is the case of OpenBSD
48 unset(HAVE_NETINET_TCP_H CACHE)
49 check_include_files("sys/socket.h;netinet/tcp.h" HAVE_NETINET_TCP_H)
50 endif()
41 51
42 file(WRITE ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h.cmake " 52 file(WRITE ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h.cmake "
43 #cmakedefine HAVE_NET_IF_H \@HAVE_NET_IF_H\@ 53 #cmakedefine HAVE_NET_IF_H \@HAVE_NET_IF_H\@
44 #cmakedefine HAVE_NET_IF_DL_H \@HAVE_NET_IF_DL_H\@ 54 #cmakedefine HAVE_NET_IF_DL_H \@HAVE_NET_IF_DL_H\@
45 #cmakedefine HAVE_NETINET_IN_H \@HAVE_NETINET_IN_H\@ 55 #cmakedefine HAVE_NETINET_IN_H \@HAVE_NETINET_IN_H\@