aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-12-21 21:09:32 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-12-21 21:09:32 -0500
commit3b0ad9f9c4588e0443e5d9c05ea1e8e1b54ec88e (patch)
tree008afc60a8d1d2f7f985b0a87f19f043fa071424 /gcc
parentaa90345aad392cc58f7beedb24992c25ce6895e5 (diff)
downloadgcc-3b0ad9f9c4588e0443e5d9c05ea1e8e1b54ec88e.zip
gcc-3b0ad9f9c4588e0443e5d9c05ea1e8e1b54ec88e.tar.gz
gcc-3b0ad9f9c4588e0443e5d9c05ea1e8e1b54ec88e.tar.bz2
(rpc/auth.h, rpc/xdr.h): Declare structures before using them in prototypes, for Irix 4.0.5.
(rpc/auth.h, rpc/xdr.h): Declare structures before using them in prototypes, for Irix 4.0.5. (rpc/rpc.h): Avoid a nested comment on Ultrix 4.3. From-SVN: r6257
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes60
1 files changed, 60 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 5cab47d..65f4879 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -872,6 +872,48 @@ for file in elf_abi.h elf.h; do
fi
done
+# IRIX 4.0.5 <rpc/auth.h> uses struct sockaddr in prototype without
+# previous definition.
+file=rpc/auth.h
+if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
+ mkdir ${LIB}/rpc 2>/dev/null
+ cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
+ chmod +w ${LIB}/$file 2>/dev/null
+ chmod a+r ${LIB}/$file 2>/dev/null
+fi
+
+if [ -r ${LIB}/$file ]; then
+ echo Fixing $file, undefined type
+ sed -e '/authdes_create.*struct sockaddr/i\
+struct sockaddr;' \
+ ${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
+ rm -f ${LIB}/$file
+ fi
+fi
+
+# IRIX 4.0.5 <rpc/xdr.h> uses struct __file_s in prototype without previous
+# definition.
+file=rpc/xdr.h
+if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
+ mkdir ${LIB}/rpc 2>/dev/null
+ cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
+ chmod +w ${LIB}/$file 2>/dev/null
+ chmod a+r ${LIB}/$file 2>/dev/null
+fi
+
+if [ -r ${LIB}/$file ]; then
+ echo Fixing $file, undefined type
+ sed -e '/xdrstdio_create.*struct __file_s/i\
+struct __file_s;' \
+ ${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
+ rm -f ${LIB}/$file
+ fi
+fi
+
# Same problem with a file from SunOS 4.1.3 : a header file containing
# the string "//" embedded in "/**/"
file=sbusdev/audiovar.h
@@ -1109,6 +1151,24 @@ if [ -r ${LIB}/$file ]; then
fi
fi
+file=rpc/rpc.h
+if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
+ mkdir ${LIB}/rpc 2>/dev/null
+ cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
+ chmod +w ${LIB}/$file 2>/dev/null
+ chmod a+r ${LIB}/$file 2>/dev/null
+fi
+
+if [ -r ${LIB}/$file ]; then
+ echo Fixing $file, nested comment
+ sed -e 's@^\(/\*.*rpc/auth_des.h>.*\)/\*@\1*/ /*@' \
+ ${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
+ rm -f ${LIB}/$file
+ fi
+fi
+
# In limits.h, put #ifndefs around things that are supposed to be defined
# in float.h to avoid redefinition errors if float.h is included first.
# On HP/UX this patch does not work, because on HP/UX limits.h uses