summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-02-22 22:03:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-02-22 22:03:26 +0000
commit13b3f78704810709000ac835e0f07862c2b103e2 (patch)
tree32168589f82933eb5543e958c13caecab387a8c6 /doio.c
parent44d27a6e4dd2f43427369f61e83839b838b643ae (diff)
downloadperl-13b3f78704810709000ac835e0f07862c2b103e2.tar.gz
Add socklen_t probe; Configure maintenance.
p4raw-id: //depot/cfgperl@5213
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/doio.c b/doio.c
index a7b6a90718..5f284db155 100644
--- a/doio.c
+++ b/doio.c
@@ -71,12 +71,17 @@
# endif
#endif
-/* Put this after #includes because <unistd.h> defines _XOPEN_*. */
+/* Put this after #includes because <unistd.h> defines _XOPEN_*.
+ * Sock_size_t is defined identically in pp_sys.c. */
#ifndef Sock_size_t
-# if _XOPEN_VERSION >= 5 || defined(_XOPEN_SOURCE_EXTENDED) || defined(__GLIBC__)
-# define Sock_size_t Size_t
+# ifdef HAS_SOCKLEN_T
+# define Sock_size_t socklen_t
# else
-# define Sock_size_t int
+# if _XOPEN_VERSION >= 5 || defined(_XOPEN_SOURCE_EXTENDED) || defined(__GLIBC__)
+# define Sock_size_t Size_t
+# else
+# define Sock_size_t int
+# endif
# endif
#endif