Tester le type socklen_t
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2699 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
4b5ec6acdb
commit
d156379e68
|
@ -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. */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue