diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-07-21 14:46:38 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-07-21 14:46:38 -0700 |
commit | 1987bdfaacfb757458e925ff9895da60f6894ae3 (patch) | |
tree | 3ca6fa1c4a341113786ae3f97d6d82feacb61071 /gcc | |
parent | ca5c3ef417b37ef662d627ee9f1d5c8a3a31b6ff (diff) | |
download | gcc-1987bdfaacfb757458e925ff9895da60f6894ae3.zip gcc-1987bdfaacfb757458e925ff9895da60f6894ae3.tar.gz gcc-1987bdfaacfb757458e925ff9895da60f6894ae3.tar.bz2 |
(<ftw.h>): Don't apply specialized fixes to <ftw.h> if we are on Solaris.
(<ftw.h>): Don't apply specialized fixes to <ftw.h>
if we are on Solaris. They are not needed in that case.
From-SVN: r4961
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixinc.svr4 | 14 |
1 files changed, 12 insertions, 2 deletions
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 <ftw.h>. +# Fix declarations of `ftw' and `nftw' in <ftw.h>. On some/most SVR4 systems +# the file <ftw.h> 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 <ftw.h> +# 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 <ftw.h> 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 |