summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/socketaddr.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1999-12-17 12:43:06 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1999-12-17 12:43:06 +0000
commitf6b30a323d2dac8b27cc3ad325458ec18cb31582 (patch)
tree25e6ce0c8d65ddbc98fcee4e2ccab8242f54c112 /otherlibs/unix/socketaddr.c
parent441e2668c4d31a82df01819ff06d806f39d85a50 (diff)
Utilisation de socklen_t
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/socketaddr.c')
-rw-r--r--otherlibs/unix/socketaddr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/otherlibs/unix/socketaddr.c b/otherlibs/unix/socketaddr.c
index 7e760161e..f5d285984 100644
--- a/otherlibs/unix/socketaddr.c
+++ b/otherlibs/unix/socketaddr.c
@@ -28,7 +28,12 @@
#endif
union sock_addr_union sock_addr;
+
+#ifdef HAS_SOCKLEN_T
+socklen_t sock_addr_len;
+#else
int sock_addr_len;
+#endif
value alloc_inet_addr(unsigned int a)
{