diff options
author | Andreas Schneider <asn@samba.org> | 2014-05-23 10:01:21 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-05-26 10:06:20 +0200 |
commit | 13ea22cdaac3b5855232f1f59d910b628847ffe2 (patch) | |
tree | 988bd6fe43dff04df27748669832c78e89dac890 /ConfigureChecks.cmake | |
parent | f81b6e84d57a6d40dce96b49cf18d924ab282872 (diff) | |
download | socket_wrapper-13ea22cdaac3b5855232f1f59d910b628847ffe2.tar.gz socket_wrapper-13ea22cdaac3b5855232f1f59d910b628847ffe2.tar.xz socket_wrapper-13ea22cdaac3b5855232f1f59d910b628847ffe2.zip |
swrap: Check if the in_pktinfo structure is available.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 2d4c409..3a31f50 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -82,6 +82,7 @@ endif (UNIX) set(SWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "socket_wrapper required system libraries") # STRUCTS +check_struct_has_member("struct in_pktinfo" ipi_addr "sys/types.h;sys/socket.h;netinet/in.h" HAVE_STRUCT_IN_PKTINFO) set(CMAKE_REQUIRED_FLAGS -D_GNU_SOURCE) check_struct_has_member("struct in6_pktinfo" ipi6_addr "sys/types.h;sys/socket.h;netinet/in.h" HAVE_STRUCT_IN6_PKTINFO) set(CMAKE_REQUIRED_FLAGS) |