summaryrefslogtreecommitdiff
path: root/lang/python39/patches/patch-Modules_nismodule.c
blob: e1bf393a94665252cd08b454bec0abaaedcd8d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-Modules_nismodule.c,v 1.1 2020/10/10 20:20:12 adam Exp $

DragonFlyBSD support
http://bugs.python.org/issue21459

--- Modules/nismodule.c.orig	2010-08-19 09:03:03.000000000 +0000
+++ Modules/nismodule.c
@@ -85,7 +85,7 @@ 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 *);
 #else
 typedef int (*foreachfunc)(int, char *, int, char *, int, char *);