Guard inclusion of <malloc.h> as to not break FreeBSD

This commit is contained in:
Marcus Müller 2019-08-16 00:58:20 +02:00
parent 587ef0ab32
commit 5bfbf62f06
3 changed files with 6 additions and 0 deletions

View file

@ -31,7 +31,9 @@
#import "GNUstepBase/NSDebug+GNUstepBase.h"
#import "GNUstepBase/NSThread+GNUstepBase.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
/* This file contains methods which nominally return an id but in fact
* always rainse an exception and never return.

View file

@ -48,7 +48,9 @@
#include <execinfo.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
typedef struct {
Class class;

View file

@ -53,7 +53,9 @@
#include <locale.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#import "GSPThread.h"