From 803820ffe778be5af68957bc46532e7c50243c9f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 21 Jan 2014 09:26:44 +0100 Subject: cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection. --- ConfigureChecks.cmake | 2 +- config.h.cmake | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 ****************************/ -- cgit