From 787e63c8f337d23db7c6d162ed4413403274544e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 16 Jun 1994 14:59:50 +0000 Subject: [PATCH] Correct argument type for ffs in string.h on Alpha OSF/1 V2.0 From-SVN: r7504 --- gcc/fixincludes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/fixincludes b/gcc/fixincludes index 3c7b1d1..bee61d2 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 -- 2.7.4