From 4d1908e004ce9d83e4ff0c54f22ec832b0ee4b80 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 7 Sep 2017 09:50:35 -0700 Subject: [PATCH] rte_vhost: include rte_config.h via compiler option Some rte_vhost files use #ifdef RTE_LIBRTE_VHOST_NUMA, but they don't explicitly include rte_config.h, which defines this macro. Instruct the compiler to pre-include rte_config.h in the same way DPDK's build system does. Change-Id: I3b8b37c18b1561e8825bde6272731e5d3eff851e Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/377630 Tested-by: SPDK Automated Test System Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris --- lib/vhost/rte_vhost/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vhost/rte_vhost/Makefile b/lib/vhost/rte_vhost/Makefile index 537a3c70e..b0ae63358 100644 --- a/lib/vhost/rte_vhost/Makefile +++ b/lib/vhost/rte_vhost/Makefile @@ -36,6 +36,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk CFLAGS += -I. CFLAGS += $(ENV_CFLAGS) +CFLAGS += -include rte_config.h # These are the DPDK vhost files copied (for now) into SPDK C_SRCS += fd_man.c socket.c vhost_user.c vhost.c