aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-05-06 10:57:52 -0700
committerJim Wilson <wilson@gcc.gnu.org>1993-05-06 10:57:52 -0700
commit9ea0a7533cf9d9727fbb6c8d606c67da145c2572 (patch)
treeca8324675a2bb721b23f42638ef086d0cb7310dc /gcc
parent074daeb15d17210af4b059cd1911143660ecc009 (diff)
downloadgcc-9ea0a7533cf9d9727fbb6c8d606c67da145c2572.zip
gcc-9ea0a7533cf9d9727fbb6c8d606c67da145c2572.tar.gz
gcc-9ea0a7533cf9d9727fbb6c8d606c67da145c2572.tar.bz2
(sys/varargs.h): Replace.
From-SVN: r4366
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixinc.svr422
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index e95cfe8..c46347c 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -1246,6 +1246,28 @@ if [ \! -z "$file_to_fix" ]; then
rm -f /tmp/$base
fi
+# Completely replace <sys/varargs.h> with a file that includes gcc's
+# stdarg.h or varargs.h files as appropriate.
+
+file=sys/varargs.h
+if [ -r ${INPUT}/$file ]; then
+ echo Replacing $file
+ cat > ${LIB}/$file << EOF
+/* This file was generated by fixincludes. */
+#ifndef _SYS_VARARGS_H
+#define _SYS_VARARGS_H
+
+#ifdef __STDC__
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
+#endif /* _SYS_VARARGS_H */
+EOF
+ chmod a+r ${LIB}/$file
+fi
+
echo 'Removing unneeded directories:'
cd $LIB
files=`find . -type d -print | sort -r`