summaryrefslogtreecommitdiff
path: root/cpan/Socket
diff options
context:
space:
mode:
authorAndy Broad <andy@broad.ology.org.uk>2015-08-13 21:13:29 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-09-05 11:12:47 -0400
commitb831154288c328f2c7bfb271f6d71f46046ec3c6 (patch)
tree9f30a2c206feebeee5b14c12cf14fbf207c28dd5 /cpan/Socket
parent79cae82cdd68857c2efc2c72c46eec0ebc4a01a4 (diff)
downloadperl-b831154288c328f2c7bfb271f6d71f46046ec3c6.tar.gz
amigaos4: cpan/Socket: needs INET_ADDRSTRLEN
Upstreamed: https://rt.cpan.org/Ticket/Display.html?id=106797
Diffstat (limited to 'cpan/Socket')
-rw-r--r--cpan/Socket/Socket.xs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpan/Socket/Socket.xs b/cpan/Socket/Socket.xs
index 50a0f31853..5f60afaf82 100644
--- a/cpan/Socket/Socket.xs
+++ b/cpan/Socket/Socket.xs
@@ -133,6 +133,10 @@ NETINET_DEFINE_CONTEXT
# define INADDR_LOOPBACK 0x7F000001
#endif /* INADDR_LOOPBACK */
+#ifndef INET_ADDRSTRLEN
+#define INET_ADDRSTRLEN 16
+#endif
+
#ifndef C_ARRAY_LENGTH
#define C_ARRAY_LENGTH(arr) (sizeof(arr) / sizeof(*(arr)))
#endif /* !C_ARRAY_LENGTH */