summaryrefslogtreecommitdiff
path: root/system/sysdig/0.11.0-do-not-use-private-jq-api.patch
blob: 3b5602f13e110e3f8d47ce05e5a182f055fb26cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Only in sysdig-0.11.0.fix: build
diff -ru sysdig-0.11.0/userspace/libsinsp/json_query.h sysdig-0.11.0.fix/userspace/libsinsp/json_query.h
--- sysdig-0.11.0/userspace/libsinsp/json_query.h	2016-07-14 10:11:40.000000000 +0200
+++ sysdig-0.11.0.fix/userspace/libsinsp/json_query.h	2016-07-21 21:50:23.582406170 +0200
@@ -24,17 +24,9 @@
 // jq is not C++-friendly
 extern "C"
 {
-	#include "compile.h"
 	#include "jv.h"
 	#include "jq.h"
 	//+++ jq C++ compile fixes
-	#ifndef NDEBUG
-	#	define NDEBUG
-	#	include "jv_alloc.h"
-	#	undef NDEBUG
-	#else
-	#	include "jv_alloc.h"
-	#endif // NDEBUG
 	#ifndef HAVE_MKSTEMP
 	#	include <stdlib.h>
 	#	include <fcntl.h>
@@ -58,8 +50,6 @@
 		}
 	#	define HAVE_MKSTEMP
 	#endif // HAVE_MKSTEMP
-	//--- jq C++ compile fix
-	#include "util.h"
 }
 
 #include <string>