aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-08 19:24:56 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-08 19:24:56 +0200
commit2a2e0cc2b2934a838d8bc92e4415aa6dea8672ef (patch)
tree1abb7d57cddce7c70043aad3e877d4546464ca88 /ConfigureChecks.cmake
parentd49aa61690da70e32b6140b5b51258da5d3efc8e (diff)
downloadsocket_wrapper-2a2e0cc2b2934a838d8bc92e4415aa6dea8672ef.tar.gz
socket_wrapper-2a2e0cc2b2934a838d8bc92e4415aa6dea8672ef.tar.xz
socket_wrapper-2a2e0cc2b2934a838d8bc92e4415aa6dea8672ef.zip
src: Fix build on OpenIndiana.
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)