path: root/src
diff options
authorAlastair Poole <>2020-06-24 23:45:29 +0100
committerAlastair Poole <>2020-06-24 23:45:29 +0100
commit8cc3bd7cdbce517fb1ae08b44af182fc814076fe (patch)
tree9108d640d883bc89fa30a2f9421326a412d2aa6c /src
parent21200cb2f7695993d1736039079f4719a9669eb4 (diff)
e_start_main: Guard against malloc.h on BSD.
This fixes a build break on FreeBSD. Guarding as per other blocks. These guards can be removed at a later stage as OpenBSD has removed malloc.h and FreeBSD is in the process of reintroducing it after a failed attempt to deprecate the header. For consistency's sake keep these blocks identical within the tree. We can nuke these later when FreeBSD make their minds up.
Diffstat (limited to 'src')
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c
index a1777c7cd..a89919909 100644
--- a/src/bin/e_start_main.c
+++ b/src/bin/e_start_main.c
@@ -31,9 +31,11 @@
31#include <signal.h> 31#include <signal.h>
32#include <errno.h> 32#include <errno.h>
33 33
34#ifdef HAVE_MALLOC_H 34# if !defined (__FreeBSD__) && !defined (__OpenBSD__)
35# include <malloc.h> 35# ifdef HAVE_MALLOC_H
36#endif 36# include <malloc.h>
37# endif
38# endif
37 39
38#include <Eina.h> 40#include <Eina.h>
39 41