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.
devs/bu5hm4n/recognition
Alastair Poole 2 years ago
parent 21200cb2f7
commit 8cc3bd7cdb
  1. 8
      src/bin/e_start_main.c

@ -31,9 +31,11 @@
#include <signal.h>
#include <errno.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
# if !defined (__FreeBSD__) && !defined (__OpenBSD__)
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# endif
# endif
#include <Eina.h>

Loading…
Cancel
Save