mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Compile fix for Solaris.
This commit is contained in:
parent
b44d3f912c
commit
7a1929b6ca
@ -697,17 +697,38 @@ typedef struct smb_wpasswd {
|
||||
#define UNI_XDIGIT 0x8
|
||||
#define UNI_SPACE 0x10
|
||||
|
||||
#ifdef HAVE_NSS_H
|
||||
#ifdef HAVE_NSS_COMMON_H
|
||||
|
||||
/* Sun Solaris */
|
||||
|
||||
#include <nss_common.h>
|
||||
#include <nss_dbdefs.h>
|
||||
#include <nsswitch.h>
|
||||
|
||||
typedef nss_status_t NSS_STATUS;
|
||||
|
||||
#define NSS_STATUS_SUCCESS NSS_SUCCESS
|
||||
#define NSS_STATUS_NOTFOUND NSS_NOTFOUND
|
||||
#define NSS_STATUS_UNAVAIL NSS_UNAVAIL
|
||||
#define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
|
||||
|
||||
#elif HAVE_NSS_H
|
||||
|
||||
/* GNU */
|
||||
|
||||
#include <nss.h>
|
||||
#else
|
||||
|
||||
/* Minimal needed to compile.. */
|
||||
typedef enum nss_status NSS_STATUS;
|
||||
|
||||
enum nss_status {
|
||||
NSS_STATUS_SUCCESS,
|
||||
NSS_STATUS_NOTFOUND,
|
||||
NSS_STATUS_UNAVAIL
|
||||
};
|
||||
#else /* Nothing's defined. Neither gnu nor sun */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
NSS_STATUS_SUCCESS,
|
||||
NSS_STATUS_NOTFOUND,
|
||||
NSS_STATUS_UNAVAIL,
|
||||
NSS_STATUS_TRYAGAIN
|
||||
} NSS_STATUS;
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user