summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake16
1 files changed, 12 insertions, 4 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 3596755..1be7583 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -97,6 +97,18 @@ check_prototype_definition(gettimeofday
"sys/time.h"
HAVE_GETTIMEOFDAY_TZ_VOID)
+check_prototype_definition(accept
+ "int accept(int s, struct sockaddr *addr, Psocklen_t addrlen)"
+ "-1"
+ "sys/types.h;sys/socket.h"
+ HAVE_ACCEPT_PSOCKLEN_T)
+
+check_prototype_definition(ioctl
+ "int accept(int s, int r, ...)"
+ "-1"
+ "unistd.h"
+ HAVE_IOCTL_INT)
+
# IPV6
check_c_source_compiles("
#include <stdlib.h>
@@ -167,10 +179,6 @@ if (OSX)
set(HAVE_APPLE 1)
endif (OSX)
-if (SOLARIS)
- add_definitions(-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1)
-endif (SOLARIS)
-
# ENDIAN
if (NOT WIN32)
test_big_endian(WORDS_BIGENDIAN)