This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fixes for Interactive Unix
[perl5.git] / hints / isc.sh
index df745a9..5860acc 100644 (file)
@@ -28,6 +28,9 @@ case "$cc" in
        ;;
 esac
 
+# getsockname() and getpeername() return 256 for no good reason
+ccflags="$ccflags -DBOGUS_GETNAME_RETURN=256"
+
 # You can also include -D_SYSV3 to pick up "traditionally visible"
 # symbols hidden by name-space pollution rules.  This raises some
 # compilation "redefinition" warnings, but they appear harmless.