mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
add the HAVE_MALLOC_H ifdef so OpenBSD compiles cleanly
This commit is contained in:
parent
71e4a3f9bc
commit
9e46831000
2 changed files with 7 additions and 1 deletions
|
@ -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 <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
#include "config.h"
|
||||||
|
#ifdef HAVE_MALLOC_H
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "quakeio.h"
|
#include "quakeio.h"
|
||||||
|
|
Loading…
Reference in a new issue