From aae05f0af4cf27f4dbb81f07719cdff72c2da6fe Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Dec 2016 12:41:41 +0000 Subject: [PATCH] ib_srpt: Fix build against MOFED v3.4 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7062 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/Makefile b/srpt/Makefile index 7d4891c3b..064b4c2e8 100644 --- a/srpt/Makefile +++ b/srpt/Makefile @@ -67,7 +67,7 @@ ifeq ($(OFED_FLAVOR),MOFED) OFED_KERNEL_DIR:=/usr/src/ofa_kernel/default OFED_VERS=$(shell rpm -q --qf '%{version}\n' mlnx-ofa_kernel-devel 2>/dev/null) CKVER:=$(shell echo "$(KVER)" | sed 's/^\(\(2\.6\|[3-9]\)\.[0-9]*\).*/\1/') -OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include -include "linux/compat-$(CKVER).h" +OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include -include "linux/compat-2.6.h" OFED_CFLAGS+=-DMOFED_MAJOR=$(shell echo $(OFED_VERS) | cut -f1 -d.) OFED_CFLAGS+=-DMOFED_MINOR=$(shell echo $(OFED_VERS) | cut -f2 -d.) else