From ac78b5fb12bfd85e1506a5587666e97061bf669d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 1 Nov 2018 05:29:23 +0000 Subject: [PATCH] ib_srpt: Fix build against MLNX-4.5 (merge r7597 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7598 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srpt/Makefile b/srpt/Makefile index 03da0fa18..106715310 100644 --- a/srpt/Makefile +++ b/srpt/Makefile @@ -73,7 +73,9 @@ ifeq ($(OFED_FLAVOR),MOFED) # , include that header file explicitly. OFED_KERNEL_DIR:=/usr/src/ofa_kernel/default OFED_VERS=$(shell rpm -q --qf '%{version}\n' mlnx-ofa_kernel-devel 2>/dev/null) -OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include -include "linux/compat-2.6.h" +OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include \ + -I$(OFED_KERNEL_DIR)/include/uapi \ + -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