summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorFred Fish <fnf@ninemoons.com>1997-09-12 00:39:10 +0000
committerJim Wilson <wilson@gcc.gnu.org>1997-09-11 17:39:10 -0700
commit70988851ef04fed01f1e52527e654fff9196714b (patch)
tree9967e62cae8c7aa4d2496aab83dab8ebbff68935 /gcc/protoize.c
parentf401679ee13670ae1201150c0ac1ff22b7b64f0a (diff)
downloadgcc-70988851ef04fed01f1e52527e654fff9196714b.tar.gz
Patches from Fred Fish for systems with sys/varargs.h but not varargs.h.
* protoize.c: Include <varargs.h> only if HAVE_VARARGS_H is defined. If not defined, include <sys/varargs.h> if HAVE_SYS_VARARGS_H is defined. * configure.in: Test for varargs.h and sys/varargs.h. * configure: Regenerate with autoconf. * config.in: Regenerate with autoheader. From-SVN: r15420
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r--gcc/protoize.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c
index bd4ac02bf56..3b50836774a 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -57,7 +57,14 @@ Boston, MA 02111-1307, USA. */
#define _POSIX_SOURCE
#endif
+#ifdef HAVE_VARARGS_H
#include <varargs.h>
+#else
+#ifdef HAVE_SYS_VARARGS_H
+#include <sys/varargs.h>
+#endif
+#endif
+
/* On some systems stdio.h includes stdarg.h;
we must bring in varargs.h first. */
#include <stdio.h>