to include --with-developer since too many systems
still have comflicts with their header files (e.g. IRIX 6.4) */
-#if !defined(__cplusplus) && defined(DEVELOPER)
+#if !defined(__cplusplus) && defined(DEVELOPER) && defined(__linux__)
#define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#include <valgrind.h>
#endif
-/* If we have --enable-developer and the valgrind header is present,
- * then we're OK to use it. Set a macro so this logic can be done only
- * once. */
-#if defined(DEVELOPER)
-#if (HAVE_VALGRIND_H || HAVE_VALGRIND_VALGRIND_H)
-#define VALGRIND
-#endif
-#endif
-
-
/* we support ADS if we want it and have krb5 and ldap libs */
#if defined(WITH_ADS) && defined(HAVE_KRB5) && defined(HAVE_LDAP)
#define HAVE_ADS
#include "../lib/util/time.h"
#include "../lib/util/asn1.h"
-#include "krb5_env.h"
#include "libads/ads_status.h"
-#include "ads.h"
#include "interfaces.h"
#include "trans2.h"
#include "../libcli/util/error.h"
#include "../lib/util/charset/charset.h"
#include "dynconfig.h"
#include "debugparse.h"
-#include "privileges.h"
+#include "../libcli/security/privileges.h"
#include "messages.h"
#include "locking.h"
#include "smb_perfcount.h"
-#include "smb_signing.h"
#include "smb.h"
#include "nameserv.h"
-#include "secrets.h"
#include "../lib/util/byteorder.h"
-#include "privileges.h"
-#include "rpc_misc.h"
-#include "rpc_dce.h"
#include "mapping.h"
#include "passdb.h"
#include "msdfs.h"
-struct ntlmssp_state;
-
#include "auth.h"
#include "ntdomain.h"
#include "librpc/rpc/dcerpc.h"
-#include "nt_printing.h"
-#include "idmap.h"
#include "client.h"
#include "session.h"
-#include "popt.h"
-#include "mangle.h"
#include "module.h"
-#include "nsswitch/winbind_client.h"
-#include "dbwrap.h"
#include "packet.h"
-#include "ctdbd_conn.h"
#include "../lib/util/talloc_stack.h"
-#include "memcache.h"
#include "serverid.h"
-#include "async_smb.h"
-#include "../lib/async_req/async_sock.h"
-#include "talloc_dict.h"
#include "../lib/util/smb_threads.h"
#include "../lib/util/smb_threads_internal.h"
-#include "nsswitch/winbind_nss.h"
-
-/* forward declaration from printing.h to get around
- header file dependencies */
-
-struct printjob;
-
-/* forward declarations from smbldap.c */
-
-#include "smbldap.h"
-
/*
* Reasons for cache flush.
*/
/* NUM_FLUSH_REASONS must remain the last value in the enumeration. */
NUM_FLUSH_REASONS};
-#include "nss_info.h"
#include "modules/nfs4_acls.h"
#include "nsswitch/libwbclient/wbclient.h"
#include "modules/vfs_irixacl.h"
#endif
-#ifdef HAVE_LDAP
-#include "libads/ads_ldap_protos.h"
-#endif
-
/* We need this after proto.h to reference GetTimeOfDay(). */
#include "smbprofile.h"
#define PASSWORD_LENGTH 8
#endif
-#ifndef HAVE_PIPE
-#define SYNC_DNS 1
-#endif
-
#if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
#define ULTRIX_AUTH 1
#endif
void exit_server_cleanly(const char *const reason) _NORETURN_;
void exit_server_fault(void) _NORETURN_;
-#ifdef HAVE_LIBNSCD
-#include "libnscd.h"
-#endif
-
#if defined(HAVE_IPV6)
void in6_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
struct in6_addr ip);