]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make OSF/1 getopt.h fix work on AIX also
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 19 May 1994 19:09:56 +0000 (19:09 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 19 May 1994 19:09:56 +0000 (19:09 +0000)
From-SVN: r7336

gcc/fixincludes

index 9c001aa35d70ce6657060163ad799c1eb89576ed..b865057a3d24e4eb513e54efec69c91021688f4b 100755 (executable)
@@ -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