aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvas-smb/comparison_fn_t.patch
blob: f2655ac6f62f44f5ded33f2d298973b14abb53c4 (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
32
33
34
35
36
37
38
diff --git a/samba/librpc/ndr/libndr_proto.h b/samba/librpc/ndr/libndr_proto.h
index f60d93d..b97df1d 100644
--- a/samba/librpc/ndr/libndr_proto.h
+++ b/samba/librpc/ndr/libndr_proto.h
@@ -9,6 +9,7 @@
 #define _PUBLIC_
 #endif
 
+typedef int (*comparison_fn_t)(const void *, const void *);
 
 /* The following definitions come from librpc/ndr/ndr.c  */
 
diff --git a/samba/lib/ldb/common/ldb_msg.c b/samba/lib/ldb/common/ldb_msg.c
index 0f7a214..7ff1583 100644
--- a/samba/lib/ldb/common/ldb_msg.c
+++ b/samba/lib/ldb/common/ldb_msg.c
@@ -35,6 +35,8 @@
 #include "includes.h"
 #include "ldb/include/includes.h"
 
+typedef int (*comparison_fn_t)(const void *, const void *);
+
 /*
   create a new ldb_message in a given memory context (NULL for top level)
 */
diff --git a/samba/lib/ldb/include/includes.h b/samba/lib/ldb/include/includes.h
index ce0d40e..c07f117 100644
--- a/samba/lib/ldb/include/includes.h
+++ b/samba/lib/ldb/include/includes.h
@@ -16,7 +16,7 @@
 #define dyn_MODULESDIR dyn_LIBDIR
 #endif
 
-
+typedef int (*comparison_fn_t)(const void *, const void *);
 
 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
 #define discard_const_p(type, ptr) ((type *)discard_const(ptr))