74fc46
diff -up ./nss/cmd/certutil/Makefile.iquote ./nss/cmd/certutil/Makefile
74fc46
--- ./nss/cmd/certutil/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/certutil/Makefile	2017-09-21 16:39:08.680260103 +0200
74fc46
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/httpserv/Makefile.iquote ./nss/cmd/httpserv/Makefile
74fc46
--- ./nss/cmd/httpserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/httpserv/Makefile	2017-09-21 16:39:08.680260103 +0200
74fc46
@@ -35,7 +35,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/lib/Makefile.iquote ./nss/cmd/lib/Makefile
74fc46
--- ./nss/cmd/lib/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/lib/Makefile	2017-09-21 16:39:08.680260103 +0200
74fc46
@@ -38,7 +38,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/modutil/Makefile.iquote ./nss/cmd/modutil/Makefile
74fc46
--- ./nss/cmd/modutil/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/modutil/Makefile	2017-09-21 16:39:08.680260103 +0200
74fc46
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/pk12util/Makefile.iquote ./nss/cmd/pk12util/Makefile
74fc46
--- ./nss/cmd/pk12util/Makefile.iquote	2017-09-21 16:41:23.158209761 +0200
74fc46
+++ ./nss/cmd/pk12util/Makefile	2017-09-21 16:41:44.298730232 +0200
74fc46
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/selfserv/Makefile.iquote ./nss/cmd/selfserv/Makefile
74fc46
--- ./nss/cmd/selfserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/selfserv/Makefile	2017-09-21 16:39:08.680260103 +0200
74fc46
@@ -35,7 +35,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/ssltap/Makefile.iquote ./nss/cmd/ssltap/Makefile
74fc46
--- ./nss/cmd/ssltap/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/ssltap/Makefile	2017-09-21 16:39:08.680260103 +0200
74fc46
@@ -39,7 +39,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/strsclnt/Makefile.iquote ./nss/cmd/strsclnt/Makefile
74fc46
--- ./nss/cmd/strsclnt/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/strsclnt/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -36,7 +36,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/tstclnt/Makefile.iquote ./nss/cmd/tstclnt/Makefile
74fc46
--- ./nss/cmd/tstclnt/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/tstclnt/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -37,6 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 #######################################################################
74fc46
 
74fc46
 #include ../platlibs.mk
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/cmd/vfyserv/Makefile.iquote ./nss/cmd/vfyserv/Makefile
74fc46
--- ./nss/cmd/vfyserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/cmd/vfyserv/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -37,6 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 #######################################################################
74fc46
 
74fc46
 #include ../platlibs.mk
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/coreconf/location.mk.iquote ./nss/coreconf/location.mk
74fc46
--- ./nss/coreconf/location.mk.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/coreconf/location.mk	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -45,6 +45,10 @@ endif
74fc46
 
74fc46
 ifdef NSS_INCLUDE_DIR
74fc46
     INCLUDES += -I$(NSS_INCLUDE_DIR)
74fc46
+    ifdef IN_TREE_FREEBL_HEADERS_FIRST
74fc46
+        INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+        INCLUDES += -iquote $(DIST)/../private/nss
74fc46
+    endif
74fc46
 endif
74fc46
 
74fc46
 ifndef NSS_LIB_DIR
74fc46
diff -up ./nss/gtests/ssl_gtest/Makefile.iquote ./nss/gtests/ssl_gtest/Makefile
74fc46
--- ./nss/gtests/ssl_gtest/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/gtests/ssl_gtest/Makefile	2017-09-21 16:39:08.682260058 +0200
74fc46
@@ -53,6 +53,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/lib/certhigh/Makefile.iquote ./nss/lib/certhigh/Makefile
74fc46
--- ./nss/lib/certhigh/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/lib/certhigh/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -38,7 +38,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/lib/cryptohi/Makefile.iquote ./nss/lib/cryptohi/Makefile
74fc46
--- ./nss/lib/cryptohi/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/lib/cryptohi/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -38,7 +38,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/lib/libpkix/pkix/checker/Makefile.iquote ./nss/lib/libpkix/pkix/checker/Makefile
74fc46
--- ./nss/lib/libpkix/pkix/checker/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/lib/libpkix/pkix/checker/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -38,7 +38,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/lib/nss/Makefile.iquote ./nss/lib/nss/Makefile
74fc46
--- ./nss/lib/nss/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/lib/nss/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/lib/pkcs12/Makefile.iquote ./nss/lib/pkcs12/Makefile
74fc46
--- ./nss/lib/pkcs12/Makefile.iquote	2017-09-21 16:39:49.616331555 +0200
74fc46
+++ ./nss/lib/pkcs12/Makefile	2017-09-21 16:40:16.286726596 +0200
74fc46
@@ -39,7 +39,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
-
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
+INCLUDES += -iquote $(DIST)/../private/nss
74fc46
 
74fc46
 #######################################################################
74fc46
 # (7) Execute "local" rules. (OPTIONAL).                              #
74fc46
diff -up ./nss/lib/ssl/Makefile.iquote ./nss/lib/ssl/Makefile
74fc46
--- ./nss/lib/ssl/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
74fc46
+++ ./nss/lib/ssl/Makefile	2017-09-21 16:39:08.681260081 +0200
74fc46
@@ -56,6 +56,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
74fc46
 # (6) Execute "component" rules. (OPTIONAL)                           #
74fc46
 #######################################################################
74fc46
 
74fc46
+INCLUDES += -iquote $(DIST)/../public/nss
74fc46
 
74fc46
 
74fc46
 #######################################################################