summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-07-07 10:02:11 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:05 +0100
commitc9f54031af8137dbd999eff245df4dff6a470f14 (patch)
treee68a0da85701cd69a3d6c49f563a8a00ff7dabf1
parent32e3f0b10e224745879b17fbddd1f712f4df6884 (diff)
stdlib.h is already covered by STDC_HEADERS
-rw-r--r--configure.ac2
-rw-r--r--rc.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d18063c..69dc89c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ AC_PROG_INSTALL
AC_PROG_YACC
AC_CHECK_PROGS(LN, ln cp)
-AC_CHECK_HEADERS(stdlib.h sys/resource.h sys/time.h sys/types.h unistd.h)
+AC_CHECK_HEADERS(sys/resource.h sys/time.h sys/types.h unistd.h)
AC_HEADER_DIRENT
AC_HEADER_STDC
diff --git a/rc.h b/rc.h
index 9663728..681dd9c 100644
--- a/rc.h
+++ b/rc.h
@@ -1,5 +1,11 @@
#include "config.h"
+#include <stdarg.h>
+
+#if STDC_HEADERS
+#include <stdlib.h>
+#endif
+
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -16,7 +22,6 @@
#undef FALSE
#undef TRUE
-#include <stdarg.h>
#if HAVE_SETPGRP