From: Ian Lance Taylor Date: Thu, 19 May 1994 19:09:56 +0000 (+0000) Subject: Make OSF/1 getopt.h fix work on AIX also X-Git-Tag: misc/cutover-egcs-0~6607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=639010aff2cc347f3900a47ad4948ae8c3e7cf4d;p=thirdparty%2Fgcc.git Make OSF/1 getopt.h fix work on AIX also From-SVN: r7336 --- diff --git a/gcc/fixincludes b/gcc/fixincludes index 9c001aa35d70..b865057a3d24 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