diff options
author | Richard Stallman <rms@gnu.org> | 1992-03-17 23:43:07 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-03-17 23:43:07 +0000 |
commit | 6a2233ebd8f1edfc3250240f6b43177bb7280506 (patch) | |
tree | 1aba868dfee78f78ff47b003d9098731235c673e /gcc | |
parent | 2a4bfeed8eb73cdefdf324daa5cd9696d56e2dce (diff) | |
download | gcc-6a2233ebd8f1edfc3250240f6b43177bb7280506.zip gcc-6a2233ebd8f1edfc3250240f6b43177bb7280506.tar.gz gcc-6a2233ebd8f1edfc3250240f6b43177bb7280506.tar.bz2 |
*** empty log message ***
From-SVN: r514
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixinc.svr4 | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 77454e2..8ba925d 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -812,6 +812,77 @@ if [ \! -z "$file_to_fix" ]; then fi fi +# Sony NEWSOS 5.0 does not support the complete ANSI C standard. + +if [ -x /bin/sony ]; then + if /bin/sony; then + + # Change <stdio.h> to not define __filbuf, __flsbuf, and __iob + + file=stdio.h + base=`basename $file` + if [ -r ${LIB}/$file ]; then + file_to_fix=${LIB}/$file + else + if [ -r ${INPUT}/$file ]; then + file_to_fix=${INPUT}/$file + else + file_to_fix="" + fi + fi + if [ \! -z "$file_to_fix" ]; then + echo Checking $file_to_fix + cp $file_to_fix /tmp/$base + chmod +w /tmp/$base + sed -e ' + s/__filbuf/_filbuf/g + s/__flsbuf/_flsbuf/g + s/__iob/_iob/g + ' /tmp/$base > /tmp/$base.sed + mv /tmp/$base.sed /tmp/$base + if cmp $file_to_fix /tmp/$base.sed >/dev/null 2>&1; then + echo No change needed in $file_to_fix + else + echo Fixed $file_to_fix + rm -f ${LIB}/$file + cp /tmp/$base ${LIB}/$file + fi + rm -f /tmp/$base + fi + + # Change <ctype.h> to not define __ctype + + file=ctype.h + base=`basename $file` + if [ -r ${LIB}/$file ]; then + file_to_fix=${LIB}/$file + else + if [ -r ${INPUT}/$file ]; then + file_to_fix=${INPUT}/$file + else + file_to_fix="" + fi + fi + if [ \! -z "$file_to_fix" ]; then + echo Checking $file_to_fix + cp $file_to_fix /tmp/$base + chmod +w /tmp/$base + sed -e ' + s/__ctype/_ctype/g + ' /tmp/$base > /tmp/$base.sed + mv /tmp/$base.sed /tmp/$base + if cmp $file_to_fix /tmp/$base.sed >/dev/null 2>&1; then + echo No change needed in $file_to_fix + else + echo Fixed $file_to_fix + rm -f ${LIB}/$file + cp /tmp/$base ${LIB}/$file + fi + rm -f /tmp/$base + fi + fi +fi + echo 'Removing unneeded directories:' cd $LIB files=`find . -type d -print | sort -r` |