aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-01-21 09:26:44 +0100
committerAndreas Schneider <asn@samba.org>2014-01-21 09:26:44 +0100
commit803820ffe778be5af68957bc46532e7c50243c9f (patch)
tree8617e4f60c42f95c03104dc1ad2af8d275d823ff /ConfigureChecks.cmake
parent7f5ead0210c1b02f81dc16c627893502e7aabb71 (diff)
downloadsocket_wrapper-803820ffe778be5af68957bc46532e7c50243c9f.tar.gz
socket_wrapper-803820ffe778be5af68957bc46532e7c50243c9f.tar.xz
socket_wrapper-803820ffe778be5af68957bc46532e7c50243c9f.zip
cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 995f8ce..587a88f 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -82,7 +82,7 @@ endif (UNIX)
set(SWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "socket_wrapper required system libraries")
# STRUCT MEMBERS
-check_struct_has_member("struct sockaddr" sa_len "sys/socket.h netinet/in.h" HAVE_STRUCT_SOCKADDR_SA_LEN)
+check_struct_has_member("struct sockaddr" sa_len "sys/types.h;sys/socket.h;netinet/in.h" HAVE_STRUCT_SOCKADDR_SA_LEN)
# PROTOTYPES
check_prototype_definition(gettimeofday