f43be0
# HG changeset patch
f43be0
# User Rob Lemley <rob@thunderbird.net>
f43be0
# Date 1663091141 0
f43be0
#      Tue Sep 13 17:45:41 2022 +0000
f43be0
# Node ID fbc2cf15893e40959b04d22c9efa4d424aeb5c4f
f43be0
# Parent  121afb4ed9b0e282cf6690736ffadf1498578434
f43be0
Bug 1790662 - Update librnp compiler include path for new location of json-c's json.h r=dandarnell
f43be0
f43be0
f43be0
json.h from json-c is now a preprocessed file and is found in the object directory
f43be0
rather than the source directory.
f43be0
f43be0
Depends on D157961
f43be0
f43be0
Differential Revision: https://phabricator.services.mozilla.com/D157962
f43be0
f43be0
diff --git a/comm/third_party/rnp/moz.build b/third_party/rnp/moz.b/commuild
f43be0
--- a/comm/third_party/rnp/moz.build
f43be0
+++ b/comm/third_party/rnp/moz.build
f43be0
@@ -81,11 +81,11 @@ else:
f43be0
 
f43be0
 if CONFIG["MZLA_SYSTEM_JSONC"]:
f43be0
     CXXFLAGS += CONFIG["MZLA_JSONC_CFLAGS"]
f43be0
 else:
f43be0
     IQuote("{}/../json-c".format(OBJDIR))
f43be0
-    LOCAL_INCLUDES += ["../json-c"]
f43be0
+    LOCAL_INCLUDES += ["!../json-c", "../json-c"]
f43be0
 
f43be0
 if CONFIG["MZLA_SYSTEM_BZIP2"]:
f43be0
     CXXFLAGS += CONFIG["MZLA_BZIP2_CFLAGS"]
f43be0
 else:
f43be0
     LOCAL_INCLUDES += ["../bzip2"]