summaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-05-06 17:57:52 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-05-06 17:57:52 +0000
commite60a3f13fb402729e0674b0bdea8ece0e5caa56d (patch)
treeca8324675a2bb721b23f42638ef086d0cb7310dc /gcc/fixinc.svr4
parent6ed6aa1fbe210dbbbd40f4d2c62c2ac2674b22c5 (diff)
downloadgcc-e60a3f13fb402729e0674b0bdea8ece0e5caa56d.tar.gz
(sys/varargs.h): Replace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4366 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr422
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index e95cfe82816..c46347cf03d 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`