diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-05-19 19:09:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-05-19 19:09:56 +0000 |
commit | 639010aff2cc347f3900a47ad4948ae8c3e7cf4d (patch) | |
tree | e7d72dbdc6af0ea9c8178e5f17de8a20ce13e9a9 /gcc | |
parent | 629025f9f285e389de0f4239c2fde2acf17268f7 (diff) | |
download | gcc-639010aff2cc347f3900a47ad4948ae8c3e7cf4d.zip gcc-639010aff2cc347f3900a47ad4948ae8c3e7cf4d.tar.gz gcc-639010aff2cc347f3900a47ad4948ae8c3e7cf4d.tar.bz2 |
Make OSF/1 getopt.h fix work on AIX also
From-SVN: r7336
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 9c001aa3..b865057 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -1492,7 +1492,7 @@ if [ -r ${LIB}/$file ]; then fi fi -# Fix getopt declarations in stdio.h and stdlib.h on Alpha OSF/1. +# Fix getopt declarations in stdio.h and stdlib.h on Alpha OSF/1 and AIX. for file in stdio.h stdlib.h; do if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" @@ -1502,7 +1502,7 @@ for file in stdio.h stdlib.h; do if [ -r ${LIB}/$file ]; then echo Fixing $file, getopt declaration - sed -e 's/getopt(int, char \*\[\],char \*)/getopt(int, char *const[], const char *)/' \ + sed -e 's/getopt(int, char \*\[\],[ ]*char \*)/getopt(int, char *const[], const char *)/' \ ${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 |