diff options
author | Tom Wood <wood@gnu.org> | 1992-12-05 00:49:52 +0000 |
---|---|---|
committer | Tom Wood <wood@gnu.org> | 1992-12-05 00:49:52 +0000 |
commit | 08455880e70070a2d72640ddaf7f994f00f7aaed (patch) | |
tree | 95979f0d326223aca5ddccfdf746ff7078489a8e | |
parent | 4f88a538e3fce8965beb26af33df4dd05c446e89 (diff) | |
download | gcc-08455880e70070a2d72640ddaf7f994f00f7aaed.zip gcc-08455880e70070a2d72640ddaf7f994f00f7aaed.tar.gz gcc-08455880e70070a2d72640ddaf7f994f00f7aaed.tar.bz2 |
fix _cplusplus typo in SCO's tinfo.h
From-SVN: r2838
-rwxr-xr-x | gcc/fixincludes | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 93d8b30..d07f24d 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -361,6 +361,24 @@ EOF fi fi +# Fix an error in this file: the #if says _cplusplus, not the double +# underscore __cplusplus that it should be +file=tinfo.h +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then + mkdir ${LIB}/rpcsvc 2>/dev/null + cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" + chmod +w ${LIB}/$file 2>/dev/null +fi + +if [ -r ${LIB}/$file ]; then + echo Fixing $file, __cplusplus macro + sed -e 's/[ ]_cplusplus/ __cplusplus/' ${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 + rm ${LIB}/$file + fi +fi + # Fix an error in this file: a missing semi-colon at the end of the statsswtch # structure definition. file=rpcsvc/rstat.h |