From 8cc3bd7cdbce517fb1ae08b44af182fc814076fe Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Wed, 24 Jun 2020 23:45:29 +0100 Subject: [PATCH] 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. --- src/bin/e_start_main.c | 8 +++++--- 1 file 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 @@ #include #include -#ifdef HAVE_MALLOC_H -# include -#endif +# if !defined (__FreeBSD__) && !defined (__OpenBSD__) +# ifdef HAVE_MALLOC_H +# include +# endif +# endif #include