From d156379e68637759b2d1f452c8b8f24293b65c6f Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 17 Dec 1999 12:42:16 +0000 Subject: [PATCH] Tester le type socklen_t git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2699 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- config/s-templ.h | 5 +++++ configure | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/config/s-templ.h b/config/s-templ.h index 7b0635b43..daaf540f2 100644 --- a/config/s-templ.h +++ b/config/s-templ.h @@ -72,6 +72,11 @@ /* Define HAS_SOCKETS if you have BSD sockets. */ +#define HAS_SOCKLEN_T + +/* Define HAS_SOCKLEN_T if the type socklen_t is defined in + /usr/include/sys/socket.h. */ + #define HAS_UNISTD /* Define HAS_UNISTD if you have /usr/include/unistd.h. */ 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 " + 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