This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
amigaos4: unistd.h needs netinet/in.h
authorAndy Broad <andy@broad.ology.org.uk>
Fri, 14 Aug 2015 02:08:12 +0000 (22:08 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 5 Sep 2015 15:12:45 +0000 (11:12 -0400)
perl.h

diff --git a/perl.h b/perl.h
index 9ff2015..86ed075 100644 (file)
--- a/perl.h
+++ b/perl.h
 
 /* If this causes problems, set i_unistd=undef in the hint file.  */
 #ifdef I_UNISTD
+#    if defined(__amigaos4__)
+#        ifdef I_NETINET_IN
+#            include <netinet/in.h>
+#        endif
+#   endif
 #   include <unistd.h>
 #   if defined(__amigaos4__)
 /* Under AmigaOS 4 newlib.library provides an environ.  However using