summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-12 00:39:10 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-12 00:39:10 +0000
commit1b3028bc7307e0e77c8b82f91b8a6def479b70d3 (patch)
tree9967e62cae8c7aa4d2496aab83dab8ebbff68935 /gcc/protoize.c
parent2e678402a5908a34e34216d2e92e20fef26e088e (diff)
downloadgcc-1b3028bc7307e0e77c8b82f91b8a6def479b70d3.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15420 138bc75d-0d04-0410-961f-82ee72b054a4
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>