diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-09-22 15:38:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-09-22 15:38:17 +0000 |
commit | 26dac81079a08fc0b7f404921002e9573594a9e3 (patch) | |
tree | 65b8d5de5be81d1d1c63d1ab2568e0dd6d7349b8 /gcc | |
parent | 984d9166dbef48952636cc84283ae8cdc142f3d6 (diff) | |
download | gcc-26dac81079a08fc0b7f404921002e9573594a9e3.zip gcc-26dac81079a08fc0b7f404921002e9573594a9e3.tar.gz gcc-26dac81079a08fc0b7f404921002e9573594a9e3.tar.bz2 |
Tweaks for LynxOS 2.2.2
From-SVN: r8120
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 7bee497..ae7e184 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -1466,7 +1466,7 @@ fi if [ -r ${LIB}/$file ]; then echo Fixing $file - sed -e '/#define[ ][ ]*void[ ]int/d' \ + sed -e '/#[ ]*define[ ][ ]*void[ ]int/d' \ ${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 @@ -1745,6 +1745,24 @@ for file in time.h sys/time.h ; do fi done +# Fix fcntl prototype in fcntl.h on LynxOS. +file=fcntl.h +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then + cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" + chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null +fi + +if [ -r ${LIB}/$file ]; then + echo Fixing $file, fcntl declaration + sed -e 's/\(fcntl.*(int, int, \)int)/\1...)/' \ + ${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 -f ${LIB}/$file + fi +fi + if $LINKS; then echo 'Making internal symbolic non-directory links' cd ${INPUT} |