From 9e468310002ce3a78ac899dd8c763f417727d814 Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Sat, 26 Feb 2000 04:06:59 +0000 Subject: [PATCH] add the HAVE_MALLOC_H ifdef so OpenBSD compiles cleanly --- common/qargs.c | 5 ++++- common/quakeio.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common/qargs.c b/common/qargs.c index 66432de..2ed912e 100644 --- a/common/qargs.c +++ b/common/qargs.c @@ -22,7 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include +#include "config.h" +#ifdef HAVE_MALLOC_H /* QF being compiled with -Werror */ +# include /* causes OpenBSD's build to fail here */ +#endif #include #include #include diff --git a/common/quakeio.c b/common/quakeio.c index 352a3fd..7bdd33d 100644 --- a/common/quakeio.c +++ b/common/quakeio.c @@ -1,4 +1,7 @@ +#include "config.h" +#ifdef HAVE_MALLOC_H #include +#endif #include #include #include "quakeio.h"