$OpenBSD: patch-Modules_nismodule_c,v 1.1.1.1 2005/06/07 01:12:58 alek Exp $
--- Modules/nismodule.c.orig	Sat Jul 10 02:57:37 2004
+++ Modules/nismodule.c	Thu Dec 30 22:51:58 2004
@@ -68,7 +68,7 @@ nis_mapname (char *map, int *pfix)
 	return map;
 }
 
-#ifdef __APPLE__
+#ifdef __OpenBSD__
 typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *);
 #else
 typedef int (*foreachfunc)(int, char *, int, char *, int, char *);
