Commit 1987bdfa by Jim Wilson

(<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
parent ca5c3ef4
...@@ -405,7 +405,13 @@ extern caddr_t mmap ();\ ...@@ -405,7 +405,13 @@ extern caddr_t mmap ();\
rm -f /tmp/$base /tmp/$base.sed rm -f /tmp/$base /tmp/$base.sed
fi 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 file=ftw.h
base=`basename $file` base=`basename $file`
...@@ -418,7 +424,11 @@ else ...@@ -418,7 +424,11 @@ else
file_to_fix="" file_to_fix=""
fi fi
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 echo Checking $file_to_fix
cp $file_to_fix /tmp/$base cp $file_to_fix /tmp/$base
chmod +w /tmp/$base chmod +w /tmp/$base
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment