add the HAVE_MALLOC_H ifdef so OpenBSD compiles cleanly

This commit is contained in:
Daniel McGregor 2000-02-26 04:06:59 +00:00
parent 71e4a3f9bc
commit 9e46831000
2 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <malloc.h>
#include "config.h"
#ifdef HAVE_MALLOC_H /* QF being compiled with -Werror */
# include <malloc.h> /* causes OpenBSD's build to fail here */
#endif
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

View File

@ -1,4 +1,7 @@
#include "config.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <stdarg.h>
#include <stdlib.h>
#include "quakeio.h"