From 56fbcf3ce506b3d753a3e8ef49330c42ab3a148c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 18 Jul 2014 09:28:22 +0000 Subject: [PATCH] srpt/Makefile: SLES + Mellanox OFED build fix git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5681 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srpt/Makefile b/srpt/Makefile index be0af03d8..20e5709ea 100644 --- a/srpt/Makefile +++ b/srpt/Makefile @@ -61,9 +61,11 @@ OFED_KERNEL_DIR:=/usr/src/compat-rdma OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include else ifeq ($(OFED_FLAVOR),MOFED) -# Mellanox OFED with or without kernel-ib RPM +# Mellanox OFED with or without kernel-ib RPM. Since several MOFED backport +# header files use the LINUX_BACKPORT() macro without including +# , include that header file explicitly. OFED_KERNEL_DIR:=/usr/src/ofa_kernel/default -OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include +OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include -include linux/compat-2.6.h else # OFED 1.5 OFED_KERNEL_DIR:=/usr/src/ofa_kernel