OSDN Git Service

(rpc/types.h): Change const extern to extern const.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jan 1993 10:59:15 +0000 (10:59 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jan 1993 10:59:15 +0000 (10:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3221 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixinc.svr4

index c1970d4..4051674 100755 (executable)
@@ -1080,6 +1080,34 @@ if [ \! -z "$file_to_fix" ]; then
   rm -f /tmp/$base
 fi
 
+# Put storage class at start of decl, to avoid warning.
+file=rpc/types.h
+base=`basename $file`
+if [ -r ${LIB}/$file ]; then
+  file_to_fix=${LIB}/$file
+else
+  if [ -r ${INPUT}/$file ]; then
+    file_to_fix=${INPUT}/$file
+  else
+    file_to_fix=""
+  fi
+fi
+if [ \! -z "$file_to_fix" ]; then
+  echo Checking $file_to_fix
+  sed -e '
+    s/const extern/extern const/g
+  ' $file_to_fix > /tmp/$base 
+  if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
+    true
+  else
+    echo Fixed $file_to_fix
+    rm -f ${LIB}/$file
+    cp /tmp/$base ${LIB}/$file
+    chmod a+r ${LIB}/$file
+  fi
+  rm -f /tmp/$base
+fi
+
 # Convert functions to prototype form, and fix arg names in <sys/stat.h>.
 
 file=sys/stat.h