summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1999-12-17 12:42:16 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1999-12-17 12:42:16 +0000
commitd156379e68637759b2d1f452c8b8f24293b65c6f (patch)
treeb59d081afd2f14ea594f16090a6db714c58a1f4b /configure
parent4b5ec6acdb630b56417fa176a43a044c546862df (diff)
Tester le type socklen_t
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2699 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 0e467e446..a9f55bc44 100755
--- a/configure
+++ b/configure
@@ -481,6 +481,11 @@ elif sh ./hasgot -lnsl -lsocket socket socketpair bind listen accept connect; th
has_sockets=yes
fi
+if sh ./hasgot -i sys/socket.h -t socklen_t; then
+ echo "socklen_t is defined in <sys/socket.h>"
+ echo "#define HAS_SOCKLEN_T" >> s.h
+fi
+
if sh ./hasgot -i unistd.h; then
echo "unistd.h found."
echo "#define HAS_UNISTD" >> s.h