]> gcc.gnu.org Git - gcc.git/commitdiff
(sys/varargs.h): Replace.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 6 May 1993 17:57:52 +0000 (10:57 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 6 May 1993 17:57:52 +0000 (10:57 -0700)
From-SVN: r4366

gcc/fixinc.svr4

index e95cfe828165caf9d85354ea97edbe9ee24e0b08..c46347cf03d835b841ce0bf0021ad2ba99fe6b84 100755 (executable)
@@ -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`
This page took 0.06019 seconds and 5 git commands to generate.