summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbind_nss.h3
-rw-r--r--source3/nsswitch/winbind_nss_linux.h4
2 files changed, 1 insertions, 6 deletions
diff --git a/source3/nsswitch/winbind_nss.h b/source3/nsswitch/winbind_nss.h
index 3bef6ca595..c9331d9166 100644
--- a/source3/nsswitch/winbind_nss.h
+++ b/source3/nsswitch/winbind_nss.h
@@ -39,8 +39,7 @@
* Linux (glibc)
*/
-#include <nss.h>
-typedef enum nss_status NSS_STATUS;
+#include "nsswitch/winbind_nss_linux.h"
#elif HAVE_NS_API_H
diff --git a/source3/nsswitch/winbind_nss_linux.h b/source3/nsswitch/winbind_nss_linux.h
index 1c7e830037..456bfa5c14 100644
--- a/source3/nsswitch/winbind_nss_linux.h
+++ b/source3/nsswitch/winbind_nss_linux.h
@@ -24,12 +24,8 @@
#ifndef _WINBIND_NSS_LINUX_H
#define _WINBIND_NSS_LINUX_H
-#if HAVE_NSS_H
-
#include <nss.h>
typedef enum nss_status NSS_STATUS;
-#endif /* HAVE_NSS_H */
-
#endif /* _WINBIND_NSS_LINUX_H */