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@lafayette.edu>
Wed, 28 Aug 2019 14:30:23 +0000 (10:30 -0400)
committerAndy Dougherty <doughera@lafayette.edu>
Sun, 29 Dec 2019 22:39:32 +0000 (17:39 -0500)
C compilers typically issue a warning, but c++ compilers may abort with
an error.

Configure

index 8d67b39..a50034f 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -11289,6 +11289,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
@@ -11355,6 +11356,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