pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/samba4/patches samba4: add missing patch
details: https://anonhg.NetBSD.org/pkgsrc/rev/67abf55f3ddc
branches: trunk
changeset: 404287:67abf55f3ddc
user: adam <adam%pkgsrc.org@localhost>
date: Sun Nov 10 17:02:34 2019 +0000
description:
samba4: add missing patch
diffstat:
net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c | 32 ++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r a089fedee174 -r 67abf55f3ddc net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_count__attrs.c Sun Nov 10 17:02:34 2019 +0000
@@ -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