$NetBSD: patch-bx,v 1.1 2005/11/14 08:05:28 jlam Exp $

--- nsswitch/winbind_nss.h.orig	2005-10-12 13:03:28.000000000 -0400
+++ nsswitch/winbind_nss.h
@@ -56,7 +56,15 @@ typedef enum nss_status NSS_STATUS;
 
 #include "nsswitch/winbind_nss_hpux.h"
 
-#else /* Nothing's defined. Neither gnu nor sun nor hp */
+#elif defined(__NetBSD__) && defined(HAVE_GETPWENT_R)
+
+/*
+ * NetBSD 3 and newer
+ */
+
+#include "nsswitch/winbind_nss_netbsd.h"
+
+#else /* Nothing's defined. Neither gnu nor netbsd nor sun nor hp */
 
 typedef enum
 {
