$OpenBSD: patch-Modules_nismodule_c,v 1.1 2006/11/01 20:59:18 alek Exp $ --- Modules/nismodule.c.orig Mon Feb 27 12:46:16 2006 +++ Modules/nismodule.c Tue Apr 14 06:36:37 2009 @@ -89,7 +89,7 @@ nis_mapname (char *map, int *pfix) return map; } -#ifdef __APPLE__ +#if defined(__OpenBSD__) || defined(__FabBSD__) typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *); #else typedef int (*foreachfunc)(int, char *, int, char *, int, char *);