summaryrefslogtreecommitdiff
path: root/pcr/libubox-lua-git/002-json-c-include.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-21 07:17:41 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-21 07:17:41 -0500
commita9f69cfa08723f8abf5608329437ca5a4205b067 (patch)
tree7440b87de8c24a3196c3a0788902a8f44e7079c5 /pcr/libubox-lua-git/002-json-c-include.patch
parentccf43c8655091c9c3e10d3ffdf13a047aa5ef83e (diff)
downloadabslibre-a9f69cfa08723f8abf5608329437ca5a4205b067.tar.gz
abslibre-a9f69cfa08723f8abf5608329437ca5a4205b067.tar.bz2
abslibre-a9f69cfa08723f8abf5608329437ca5a4205b067.zip
libubox-lua-git-r340.791a361-1: updating version
Diffstat (limited to 'pcr/libubox-lua-git/002-json-c-include.patch')
-rw-r--r--pcr/libubox-lua-git/002-json-c-include.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/libubox-lua-git/002-json-c-include.patch b/pcr/libubox-lua-git/002-json-c-include.patch
new file mode 100644
index 000000000..72b50816f
--- /dev/null
+++ b/pcr/libubox-lua-git/002-json-c-include.patch
@@ -0,0 +1,31 @@
+--- a/blobmsg_json.c
++++ b/blobmsg_json.c
+@@ -17,11 +17,7 @@
+ #include "blobmsg.h"
+ #include "blobmsg_json.h"
+
+-#ifdef JSONC
+- #include <json.h>
+-#else
+- #include <json/json.h>
+-#endif
++#include <json-c/json.h>
+
+ bool blobmsg_add_object(struct blob_buf *b, json_object *obj)
+ {
+--- a/jshn.c
++++ b/jshn.c
+@@ -13,11 +13,8 @@
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+-#ifdef JSONC
+- #include <json.h>
+-#else
+- #include <json/json.h>
+-#endif
++
++#include <json-c/json.h>
+
+ #include <string.h>
+ #include <stdlib.h>