pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/samba4/patches
Module Name: pkgsrc
Committed By: adam
Date: Sun Nov 10 17:02:34 UTC 2019
Added Files:
pkgsrc/net/samba4/patches:
patch-source4_dsdb_samdb_ldb__modules_count__attrs.c
Log Message:
samba4: add missing patch
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
pkgsrc/net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c
diff -u /dev/null pkgsrc/net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c:1.1
--- /dev/null Sun Nov 10 17:02:34 2019
+++ pkgsrc/net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c Sun Nov 10 17:02:34 2019
@@ -0,0 +1,32 @@
+$NetBSD: patch-source4_dsdb_samdb_ldb__modules_count__attrs.c,v 1.1 2019/11/10 17:02:34 adam Exp $
+
+Fix for systems without __compar_fn_t.
+
+--- source4/dsdb/samdb/ldb_modules/count_attrs.c.orig 2019-11-09 22:30:59.000000000 +0000
++++ source4/dsdb/samdb/ldb_modules/count_attrs.c
+@@ -222,7 +222,11 @@ static const char **get_sorted_attrs(TAL
+ attrs[i] = a;
+ }
+
++#ifdef __COMPAR_FN_T
+ qsort(attrs, n_attrs, sizeof(char *), (__compar_fn_t)strcasecmp_ptr);
++#else
++ qsort(attrs, n_attrs, sizeof(char *), strcasecmp_ptr);
++#endif
+ return attrs;
+ }
+
+@@ -312,8 +316,13 @@ static int count_attrs_search_callback(s
+ found_attrs[i] = msg->elements[i].name;
+ }
+
++#ifdef __COMPAR_FN_T
+ qsort(found_attrs, msg->num_elements, sizeof(char *),
+ (__compar_fn_t)strcasecmp_ptr);
++#else
++ qsort(found_attrs, msg->num_elements, sizeof(char *),
++ strcasecmp_ptr);
++#endif
+
+
+ /* find and report duplicates */
Home |
Main Index |
Thread Index |
Old Index