summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/nsswitch/winbind_nss.h3
-rw-r--r--source4/nsswitch/winbind_nss_linux.h4
2 files changed, 1 insertions, 6 deletions
diff --git a/source4/nsswitch/winbind_nss.h b/source4/nsswitch/winbind_nss.h
index 5416ae211e..c7abf77ea0 100644
--- a/source4/nsswitch/winbind_nss.h
+++ b/source4/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/source4/nsswitch/winbind_nss_linux.h b/source4/nsswitch/winbind_nss_linux.h
index 1c7e830037..456bfa5c14 100644
--- a/source4/nsswitch/winbind_nss_linux.h
+++ b/source4/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 */