$OpenBSD: patch-Modules_nismodule_c,v 1.1 2008/10/18 12:03:56 djm Exp $
--- Modules/nismodule.c.orig	Tue Feb 28 03:46:16 2006
+++ Modules/nismodule.c	Mon Sep 18 06:31:10 2006
@@ -89,7 +89,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 *);
