summaryrefslogtreecommitdiffstats
path: root/Modules/nismodule.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-07 06:49:41 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-07 06:49:41 (GMT)
commite93eee7d220cdc5fcaa833d90047eaf0eb035cdf (patch)
tree9f953f6fa869c7d5224b11392669d41975ce3436 /Modules/nismodule.c
parentfd00916c2e460a8cf16acc46409469d19bc48805 (diff)
downloadcpython-e93eee7d220cdc5fcaa833d90047eaf0eb035cdf.zip
cpython-e93eee7d220cdc5fcaa833d90047eaf0eb035cdf.tar.gz
cpython-e93eee7d220cdc5fcaa833d90047eaf0eb035cdf.tar.bz2
#6420: Fix a compilation warning in the nis module, for OpenBSD and FreeBSD.
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r--Modules/nismodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index 9c1cd00..9fbab5a 100644
--- a/Modules/nismodule.c
+++ b/Modules/nismodule.c
@@ -89,7 +89,7 @@ nis_mapname (char *map, int *pfix)
return map;
}
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *);
#else
typedef int (*foreachfunc)(int, char *, int, char *, int, char *);