summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bx
blob: 219dc18b660110d1008b3eac790350829987628d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$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
 {