From 786986d61df0f0572dd2d0b2cd96850af505972e Mon Sep 17 00:00:00 2001 From: DC Date: Sat, 11 Sep 2021 22:33:08 +0100 Subject: [PATCH 1/2] dragonflybsd fix nis module build. --- Modules/nismodule.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/nismodule.c b/Modules/nismodule.c index 6655451ebd2fbf7..84ea805afbf05c5 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -115,10 +115,12 @@ nis_mapname(char *map, int *pfix) return map; } -#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *); +typedef unsigned long nisstatus; #else typedef int (*foreachfunc)(int, char *, int, char *, int, char *); +typedef int nisstatus; #endif struct ypcallback_data { @@ -128,7 +130,7 @@ struct ypcallback_data { }; static int -nis_foreach(int instatus, char *inkey, int inkeylen, char *inval, +nis_foreach(nisstatus instatus, char *inkey, int inkeylen, char *inval, int invallen, struct ypcallback_data *indata) { if (instatus == YP_TRUE) { From cf178e6e100832a1aad1ea6746a96ca8e038c227 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sat, 11 Sep 2021 20:36:04 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Misc/NEWS.d/next/Build/2021-09-11-20-36-02.bpo-45174.aG9lsL.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2021-09-11-20-36-02.bpo-45174.aG9lsL.rst diff --git a/Misc/NEWS.d/next/Build/2021-09-11-20-36-02.bpo-45174.aG9lsL.rst b/Misc/NEWS.d/next/Build/2021-09-11-20-36-02.bpo-45174.aG9lsL.rst new file mode 100644 index 000000000000000..2ec930ded5d480d --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-09-11-20-36-02.bpo-45174.aG9lsL.rst @@ -0,0 +1 @@ +Fixes NIS module build on the DragonFlyBSD platform. \ No newline at end of file