This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Include <stdio.h> in getpgrp/setpgrp probes for printf prototype.
authorAndy Dougherty <doughera@lafayete.edu>
Mon, 30 Dec 2019 02:11:23 +0000 (21:11 -0500)
committerAndy Dougherty <doughera@lafayete.edu>
Tue, 31 Dec 2019 02:03:22 +0000 (21:03 -0500)
C compilers typically issue a warning, but c++ compilers may abort with
an error.

U/modified/d_getpgrp.U
U/modified/d_setpgrp.U

index 246133e..4e6198f 100644 (file)
@@ -50,6 +50,7 @@ case "$d_getpgrp" in
        echo " "
        echo "Checking to see which flavor of getpgrp is in use..."
        $cat >try.c <<EOP
+#include <stdio.h>
 #$i_unistd I_UNISTD
 #include <sys/types.h>
 #ifdef I_UNISTD
index 8238f7f..d8d8464 100644 (file)
@@ -61,6 +61,7 @@ case "$d_setpgrp" in
        echo " "
        echo "Checking to see which flavor of setpgrp is in use..."
        $cat >try.c <<EOP
+#include <stdio.h>
 #$i_unistd I_UNISTD
 #include <sys/types.h>
 #ifdef I_UNISTD