From 1987bdfaacfb757458e925ff9895da60f6894ae3 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 21 Jul 1993 14:46:38 -0700 Subject: (): Don't apply specialized fixes to if we are on Solaris. (): Don't apply specialized fixes to if we are on Solaris. They are not needed in that case. From-SVN: r4961 --- gcc/fixinc.svr4 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index ae82612..6c1d4aa 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -405,7 +405,13 @@ extern caddr_t mmap ();\ rm -f /tmp/$base /tmp/$base.sed fi -# Fix declarations of `ftw' and `nftw' in . +# Fix declarations of `ftw' and `nftw' in . On some/most SVR4 systems +# the file contains extern declarations of these functions followed +# by explicitly `static' definitions of these functions... and that's not +# allowed according to ANSI C. (Note however that on Solaris, this header +# file glitch has been pre-fixed by Sun. In the Solaris version of +# there are no static definitions of any function so we don't need to do +# any of this stuff when on Solaris. file=ftw.h base=`basename $file` @@ -418,7 +424,11 @@ else file_to_fix="" fi fi -if [ \! -z "$file_to_fix" ]; then +if test -z "$file_to_fix" || grep 'define ftw' $file_to_fix > /dev/null; then +# Either we have no file at all, or else we have the pre-fixed Solaris +# one. Either way, we don't have to do anything. + true +else echo Checking $file_to_fix cp $file_to_fix /tmp/$base chmod +w /tmp/$base -- cgit v1.1