From 769cb7fb26f06c1e76faa7df05af36c458423eee Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 1 Dec 2021 06:00:49 +0000 Subject: [PATCH] fcst: Fix the build for Debian systems Fixes: https://github.com/bvanassche/scst/issues/52 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9610 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/Kbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcst/Kbuild b/fcst/Kbuild index f7b6dd2a1..6f9a59674 100644 --- a/fcst/Kbuild +++ b/fcst/Kbuild @@ -1,5 +1,5 @@ KBUILD_EXTRA_SYMBOLS=$(src)/../scst/src/Module.symvers -ccflags-y += -I$(src)/../scst/include $(shell grep -qw fc_fill_fc_hdr $$(pwd)/include/scsi/fc_encode.h 2>/dev/null && echo -DFC_FILL_FC_HDR_IN_SCSI_FC_ENCODE_H) +ccflags-y += -I$(src)/../scst/include $(shell if [ -e include/scsi ]; then header_dir=.; else header_dir=$$(sed 's/^include[[:blank:]]\+\(.*\)\/Makefile$$/\1/' Makefile); fi; if false; then echo "header_dir=$${header_dir}" >&2; fi; grep -qw fc_fill_fc_hdr "$${header_dir}/include/scsi/fc_encode.h" 2>/dev/null && echo -DFC_FILL_FC_HDR_IN_SCSI_FC_ENCODE_H) obj-$(CONFIG_FCST) += fcst.o