Silence some warnings during Configure
H.Merijn Brand [Tue, 21 Nov 2006 16:03:30 +0000 (16:03 +0000)]
p4raw-id: //depot/perl@29339

hints/hpux.sh

index be1a51e..4d105c7 100644 (file)
@@ -188,7 +188,7 @@ toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
     gcc_64native=no
 case "$ccisgcc" in
     $define|true|[Yy])
-       echo 'int main(){long l;printf("%d\\n",sizeof(l));}'>try.c
+       echo '#include <stdio.h>\nint main(){long l;printf("%d\\n",sizeof(l));}'>try.c
        $cc -o try $ccflags $ldflags try.c
        if [ "`try`" = "8" ]; then
            cat <<EOM >&4
@@ -336,6 +336,7 @@ else
 
 ## Optimization limits
 cat >try.c <<EOF
+#include <stdio.h>
 #include <sys/resource.h>
 
 int main ()