diff options
Diffstat (limited to 'cpan/Socket/Socket.xs')
-rw-r--r-- | cpan/Socket/Socket.xs | 4 |
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 */ |