diff options
author | Andreas Schneider <asn@samba.org> | 2014-01-21 09:26:44 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-01-21 09:26:44 +0100 |
commit | 803820ffe778be5af68957bc46532e7c50243c9f (patch) | |
tree | 8617e4f60c42f95c03104dc1ad2af8d275d823ff | |
parent | 7f5ead0210c1b02f81dc16c627893502e7aabb71 (diff) | |
download | socket_wrapper-803820ffe778be5af68957bc46532e7c50243c9f.tar.gz socket_wrapper-803820ffe778be5af68957bc46532e7c50243c9f.tar.xz socket_wrapper-803820ffe778be5af68957bc46532e7c50243c9f.zip |
cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection.
-rw-r--r-- | ConfigureChecks.cmake | 2 | ||||
-rw-r--r-- | config.h.cmake | 4 |
2 files changed, 5 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 diff --git a/config.h.cmake b/config.h.cmake index 4f912bd..badd5d2 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -16,6 +16,9 @@ #cmakedefine HAVE_SYS_FILIO_H 1 +/************************ STRUCT MEMBERS *************************/ + +#cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1 /*************************** FUNCTIONS ***************************/ @@ -30,6 +33,7 @@ #cmakedefine HAVE_GETTIMEOFDAY_TZ_VOID 1 /*************************** DATA TYPES***************************/ + #cmakedefine SIZEOF_PID_T @SIZEOF_PID_T@ /**************************** OPTIONS ****************************/ |