mem: fix build
authorThomas Monjalon <thomas@monjalon.net>
Sun, 26 Apr 2020 10:40:46 +0000 (12:40 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Apr 2020 11:27:08 +0000 (13:27 +0200)
commit27efcf2003113fc9a236d8cf5b6c5e01b28b59ca
treedcab94abbe4d4a5220c9947eed441154dc4bb3fb
parentec5a905ec8305cbd56413b906a64b361b2a3c132
mem: fix build

Some compilers (on RHEL7 and CentOS7) were getting this error:
error: "RTE_EXEC_ENV_FREEBSD" is not defined [-Werror=undef]

Existence of a macro must be checked with "#ifdef" or "#if defined".

Fixes: d72e4042c5eb ("mem: exclude unused memory from core dump")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Raslan Darawsheh <rasland@mellanox.com>
lib/librte_eal/common/eal_common_memory.c