From bcd54926b49175e3d4a4ffd146c1d40fb30ba0c2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 28 Sep 2001 03:58:51 +0000 Subject: [PATCH] make compile with gcc 3.0 --- tools/qfdefs/configure.in | 2 +- tools/qfdefs/source/defs.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/qfdefs/configure.in b/tools/qfdefs/configure.in index 0ab0bfaec..40ff6d3af 100644 --- a/tools/qfdefs/configure.in +++ b/tools/qfdefs/configure.in @@ -34,7 +34,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(sys/types.h sys/wait.h unistd.h) +AC_CHECK_HEADERS(string.h strings.h sys/types.h sys/wait.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_ARG_ENABLE(profile, diff --git a/tools/qfdefs/source/defs.c b/tools/qfdefs/source/defs.c index e4908e081..eb494c6b5 100644 --- a/tools/qfdefs/source/defs.c +++ b/tools/qfdefs/source/defs.c @@ -1,3 +1,12 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif +#ifdef HAVE_STRING_H +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif #include #include "def.h"