summaryrefslogtreecommitdiff
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>1994-06-16 14:59:50 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>1994-06-16 14:59:50 +0000
commitedd30d97d3fcf7b64865a95d5b44c45e733e5e2a (patch)
tree2ab229f57e57b2784302d426a4df022b909e0b3a /gcc/fixincludes
parent1a8a49986c36ca77f72485598a6e2ad2f6070d0f (diff)
downloadgcc-edd30d97d3fcf7b64865a95d5b44c45e733e5e2a.tar.gz
Correct argument type for ffs in string.h on Alpha OSF/1 V2.0
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7504 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 3c7b1d139d4..bee61d2d0c1 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -1425,6 +1425,7 @@ if [ -r ${LIB}/$file ]; then
fi
# Correct the return type for strlen in string.h on Lynx.
+# Correct the argument type for ffs in string.h on Alpha OSF/1 V2.0.
file=string.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
@@ -1435,6 +1436,7 @@ fi
if [ -r ${LIB}/$file ]; then
echo Fixing $file
sed -e 's/extern[ ]*int[ ]*strlen();/extern unsigned int strlen();/' \
+ -e 's/extern[ ]*int[ ]*ffs[ ]*(long);/extern int ffs(int);/' \
${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
if cmp $file ${LIB}/$file >/dev/null 2>&1; then