summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbind_nss_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/winbind_nss_config.h')
-rw-r--r--source3/nsswitch/winbind_nss_config.h50
1 files changed, 4 insertions, 46 deletions
diff --git a/source3/nsswitch/winbind_nss_config.h b/source3/nsswitch/winbind_nss_config.h
index f7fa261f7d..8ca51c9287 100644
--- a/source3/nsswitch/winbind_nss_config.h
+++ b/source3/nsswitch/winbind_nss_config.h
@@ -33,55 +33,13 @@
/* Include header files from data in config.h file */
#ifndef NO_CONFIG_H
-#include <config.h>
+#include "lib/replace/replace.h"
#endif
-#include <stdio.h>
+#include "system/passwd.h"
+#include "system/network.h"
+#include "system/filesys.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-
-#ifdef HAVE_UNIXSOCKET
-#include <sys/un.h>
-#endif
-
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-
-#ifdef HAVE_GRP_H
-#include <grp.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#else
-#ifdef HAVE_SYS_FCNTL_H
-#include <sys/fcntl.h>
-#endif
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <pwd.h>
#include "nsswitch/winbind_nss.h"
/* I'm trying really hard not to include anything from smb.h with the