Commit 7313c84b by Ian Lance Taylor

More fixes for IRIX 4.0.1

From-SVN: r4372
parent 71a247f0
...@@ -277,7 +277,8 @@ while [ $# != 0 ]; do ...@@ -277,7 +277,8 @@ while [ $# != 0 ]; do
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/ /[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/
/#define._IO/ s/'\''\([cgx]\)'\''/\1/g /#define._IO/ s/'\''\([cgx]\)'\''/\1/g
/#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g /#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g
/[^A-Z]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/ /[^A-Z_]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
/[^A-Z]_CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
/#define.CTRL/ s/'\''\([cgx]\)'\''/\1/g /#define.CTRL/ s/'\''\([cgx]\)'\''/\1/g
/#define._CTRL/ s/'\''\([cgx]\)'\''/\1/g /#define._CTRL/ s/'\''\([cgx]\)'\''/\1/g
/#define.BSD43_CTRL/ s/'\''\([cgx]\)'\''/\1/g /#define.BSD43_CTRL/ s/'\''\([cgx]\)'\''/\1/g
...@@ -846,6 +847,17 @@ if [ -r ${LIB}/$file ]; then ...@@ -846,6 +847,17 @@ if [ -r ${LIB}/$file ]; then
fi fi
fi fi
# Another IRIX 4.0.1 header file contains the string "//"
file=elf_abi.h
if [ -r ${LIB}/$file ]; then
echo Fixing $file, overeager sed script
sed -e 's|"/\*"\*/|"//"|' ${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
# Fix non-ANSI memcpy declaration that conflicts with gcc's builtin # Fix non-ANSI memcpy declaration that conflicts with gcc's builtin
# declaration on Sun OS 4.x. We must only fix this on Sun OS 4.x, because # declaration on Sun OS 4.x. We must only fix this on Sun OS 4.x, because
# many other systems have similar text but correct versions of the file. # many other systems have similar text but correct versions of the file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment