smlinux/net/samba/add_missing___compar_fn_t.patch
PktSurf 7ab82ed463 Moved vim from base to extra
Added xscreensaver in extra
Added elinks to net
Removed samba3 and renamed samba4 as samba in net
Updated base, extra and net build lists
2022-03-05 15:02:14 +05:30

14 lines
395 B
Diff

--- a/source4/dsdb/samdb/ldb_modules/count_attrs.c
+++ b/source4/dsdb/samdb/ldb_modules/count_attrs.c
@@ -38,6 +38,11 @@
#define NULL_REQ_PSEUDO_N -2LL;
#define STAR_REQ_PSEUDO_N -4LL;
+#ifndef __COMPAR_FN_T
+#define __COMPAR_FN_T
+typedef int (*__compar_fn_t)(const void *, const void *);
+#endif
+
struct count_attrs_private {
struct tdb_wrap *requested;
struct tdb_wrap *duplicates;