From b7d68c564812a43a49d2870b105bbb8d27ceed54 Mon Sep 17 00:00:00 2001
From: Dirk Zimoch <dirk.zimoch@psi.ch>
Date: Thu, 26 Jan 2017 17:40:23 +0100
Subject: [PATCH] fix for posix header files

---
 App/tools/driver.makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/App/tools/driver.makefile b/App/tools/driver.makefile
index a13504d2..423e5e4d 100644
--- a/App/tools/driver.makefile
+++ b/App/tools/driver.makefile
@@ -679,7 +679,7 @@ DBDEXPANDPATH = $(addprefix -I , ${DBD_PATH} ${EPICS_BASE}/dbd)
 USR_DBDFLAGS += $(DBDEXPANDPATH)
 
 # search all directories where sources or headers come from, plus existing os dependend subdirectories
-SRC_INCLUDES = $(addprefix -I, $(wildcard $(foreach d,$(call uniq, $(filter-out /%,$(dir ${SRCS:%=../%} ${HDRS:%=../%}))), $d $d/os/${OS_CLASS} $d/os/default)))
+SRC_INCLUDES = $(addprefix -I, $(wildcard $(foreach d,$(call uniq, $(filter-out /%,$(dir ${SRCS:%=../%} ${HDRS:%=../%}))), $d $(addprefix $d/, os/${OS_CLASS} $(POSIX_$(POSIX)) os/default))))
 
 # different macro name for 3.14.8
 GENERIC_SRC_INCLUDES = $(SRC_INCLUDES)
-- 
GitLab