summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/nismodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index c2646eb..4be4657 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 *);