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.
[metaconfig.git] / U / modified / d_getpgrp.U
index 00486f8..4e6198f 100644 (file)
@@ -1,16 +1,16 @@
 ?RCS: $Id: d_getpgrp.U,v 3.0.1.1 1997/02/28 15:34:28 ram Exp $
 ?RCS:
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
-?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
 ?RCS: as specified in the README file that comes with the distribution.
 ?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: that same Artistic License; a copy of which may be found at the root
 ?RCS: of the source tree for dist 3.0.
 ?RCS:
 ?RCS: $Log: d_getpgrp.U,v $
 ?RCS: Revision 3.0.1.1  1997/02/28  15:34:28  ram
-?RCS: patch61: new USE_BSD_GETPGRP to detect the getpgrp() flavour
+?RCS: patch61: new USE_BSD_GETPGRP to detect the getpgrp() flavor
 ?RCS:
 ?RCS: Revision 3.0  1993/08/18  12:06:15  ram
 ?RCS: Baseline for dist 3.0 netwide release.
@@ -38,6 +38,7 @@
 ?H:#$d_bsdgetpgrp USE_BSD_GETPGRP      /**/
 ?H:.
 ?T:xxx
+?F:!try
 ?LINT:set d_getpgrp d_bsdgetpgrp
 : see if getpgrp exists
 set getpgrp d_getpgrp
@@ -49,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