malloc.h - bsd does not like me including it...

This commit is contained in:
Carsten Haitzler 2020-01-18 01:33:21 +01:00
parent 1e2d589b14
commit bac870bf61
2 changed files with 8 additions and 4 deletions

View File

@ -104,8 +104,10 @@ void *alloca (size_t);
# include <execinfo.h>
# endif
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# if !defined (__FreeBSD__) && !defined (__OpenBSD__)
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# endif
# endif
// XXX: FIXME: TMP solution for window stack until api is settled

View File

@ -66,8 +66,10 @@ void *alloca (size_t);
# include <inttypes.h>
# include <assert.h>
# include <fcntl.h>
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# if !defined (__FreeBSD__) && !defined (__OpenBSD__)
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# endif
# endif
#if defined (__FreeBSD__) || defined (__OpenBSD__)