diff options
author | wood <wood@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-12-05 00:49:52 +0000 |
---|---|---|
committer | wood <wood@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-12-05 00:49:52 +0000 |
commit | 5734c8aa3d018c43d22dd1668dbdc2364ddb29f1 (patch) | |
tree | 95979f0d326223aca5ddccfdf746ff7078489a8e /gcc/fixincludes | |
parent | 8eba4afe985c3096ea0502242a53681b965c536d (diff) | |
download | ppe42-gcc-5734c8aa3d018c43d22dd1668dbdc2364ddb29f1.tar.gz ppe42-gcc-5734c8aa3d018c43d22dd1668dbdc2364ddb29f1.zip |
fix _cplusplus typo in SCO's tinfo.h
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-x | gcc/fixincludes | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 93d8b30862c..d07f24d74bf 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 |