Commit 9ea0a753 by Jim Wilson

(sys/varargs.h): Replace.

From-SVN: r4366
parent 074daeb1
...@@ -1246,6 +1246,28 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -1246,6 +1246,28 @@ if [ \! -z "$file_to_fix" ]; then
rm -f /tmp/$base rm -f /tmp/$base
fi 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:' echo 'Removing unneeded directories:'
cd $LIB cd $LIB
files=`find . -type d -print | sort -r` files=`find . -type d -print | sort -r`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment