4b97cd2fb4
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
14 lines
395 B
Diff
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;
|