Subject: | [PATCH] amigaos4: cpan/Socket: needs INET_ADDRSTRLEN |
Yes, AmigaOS is alive. Patch attached.
Subject: | 0001-amigaos4-cpan-Socket-needs-INET_ADDRSTRLEN.patch |
From 5bd803ac882b92a09ce9e84f795ddcc7a4454e40 Mon Sep 17 00:00:00 2001
From: Jarkko Hietaniemi <jhi@iki.fi>
Date: Thu, 13 Aug 2015 21:13:29 -0400
Subject: [PATCH] amigaos4: cpan/Socket: needs INET_ADDRSTRLEN
---
cpan/Socket/Socket.xs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cpan/Socket/Socket.xs b/cpan/Socket/Socket.xs
index 50a0f31..5f60afa 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 */
--
2.5.0