s3:modules: Fix code spelling
[Samba.git] / nsswitch / winbind_nss.h
blob53250d6f9fd5fb7f50773c32c7be2767149d19f3
1 /*
2 Unix SMB/CIFS implementation.
4 A common place to work out how to define NSS_STATUS on various
5 platforms.
7 Copyright (C) Tim Potter 2000
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 3 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
19 You should have received a copy of the GNU Lesser General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _NSSWITCH_NSS_H
24 #define _NSSWITCH_NSS_H
26 #ifdef HAVE_NSS_COMMON_H
29 * Sun Solaris
32 #include "nsswitch/winbind_nss_solaris.h"
33 #include "nsswitch/winbind_nss_linux.h"
35 #elif defined(HAVE_NSS_H)
38 * Linux (glibc)
41 #include <nss.h>
43 typedef enum nss_status NSS_STATUS;
45 #include "nsswitch/winbind_nss_linux.h"
47 #elif defined(HAVE_NS_API_H)
50 * SGI IRIX
53 #include "nsswitch/winbind_nss_irix.h"
55 #elif defined(HPUX) && defined(HAVE_NSSWITCH_H)
57 /* HP-UX 11 */
59 #include "nsswitch/winbind_nss_hpux.h"
61 #elif defined(__NetBSD__) && defined(HAVE_GETPWENT_R)
64 * NetBSD 3 and newer
67 #include "nsswitch/winbind_nss_netbsd.h"
68 #include "nsswitch/winbind_nss_linux.h"
70 #else /* Nothing's defined. Neither gnu nor netbsd nor sun nor hp */
72 typedef enum
74 NSS_STATUS_SUCCESS=0,
75 NSS_STATUS_NOTFOUND=1,
76 NSS_STATUS_UNAVAIL=2,
77 NSS_STATUS_TRYAGAIN=3
78 } NSS_STATUS;
80 #endif
82 #endif /* _NSSWITCH_NSS_H */