diff options
author | Torbjorn Granlund <tege@gnu.org> | 1992-05-19 19:28:45 +0000 |
---|---|---|
committer | Torbjorn Granlund <tege@gnu.org> | 1992-05-19 19:28:45 +0000 |
commit | 460d7c1892f85358cad1bc6460e1e652115237ac (patch) | |
tree | 98daebb170b296fbe9a94a862d517f32af90b9c8 /gcc | |
parent | 668681efe4aaff8f47d4a149a0eb7f4359efbbc6 (diff) | |
download | gcc-460d7c1892f85358cad1bc6460e1e652115237ac.zip gcc-460d7c1892f85358cad1bc6460e1e652115237ac.tar.gz gcc-460d7c1892f85358cad1bc6460e1e652115237ac.tar.bz2 |
*** empty log message ***
From-SVN: r1018
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 0068583..7381b3f 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -467,6 +467,25 @@ if [ -r ${LIB}/$file ]; then fi fi +# Fix return type of free and {c,m,re}alloc in <malloc.h> on SunOS 4.1. +file=malloc.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 +fi + +if [ -r ${LIB}/$file ]; then + echo Fixing $file + sed -e 's/typedef char \* malloc_t/typedef void \* malloc_t/g' \ + ${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 + echo Deleting ${LIB}/$file\; no fixes were needed. + rm -f ${LIB}/$file + fi +fi + + # Fix bogus comment in <locale.h> on SunOS 4.1. file=locale.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then |