diff options
author | Andreas Schneider <asn@samba.org> | 2014-01-22 20:06:59 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-05-21 14:42:53 +0200 |
commit | ae3c84b07bc57be52c3f5d706bfeb62a7fa9ebbc (patch) | |
tree | e00a0bca6bcc5c0b36a545fd0af4cdbb51d15d4b /ConfigureChecks.cmake | |
parent | 0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0 (diff) | |
download | socket_wrapper-ae3c84b07bc57be52c3f5d706bfeb62a7fa9ebbc.tar.gz socket_wrapper-ae3c84b07bc57be52c3f5d706bfeb62a7fa9ebbc.tar.xz socket_wrapper-ae3c84b07bc57be52c3f5d706bfeb62a7fa9ebbc.zip |
cmake: Add check for HAVE_STRUCT_IN6_PKTINFO.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 8db5162..2d4c409 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -81,6 +81,11 @@ endif (UNIX) set(SWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "socket_wrapper required system libraries") +# STRUCTS +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) + # STRUCT MEMBERS check_struct_has_member("struct sockaddr" sa_len "sys/types.h;sys/socket.h;netinet/in.h" HAVE_STRUCT_SOCKADDR_SA_LEN) check_struct_has_member("struct msghdr" msg_control "sys/types.h;sys/socket.h" HAVE_STRUCT_MSGHDR_MSG_CONTROL) |