This is an alternative to the patch submitted at: From: Jingqi Liu <jingqi....@intel.com> Subject: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c Date: Thu, 5 Mar 2020 23:41:42 +0800 Message-Id: <20200305154142.63070-1-jingqi....@intel.com>
Before moving the osdep.h include to the top of the file, we had to address warnings triggered when <linux/mman.h> was included after <sys/mman.h> (done in patch 1/2). Eduardo Habkost (2): Use -isystem for linux-headers dir mmap-alloc: Include osdep.h before checking CONFIG_LINUX Makefile.target | 2 +- configure | 2 +- util/mmap-alloc.c | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) -- 2.24.1