#define PRINTCAP_NAME "/etc/printcap"
#endif
-#ifdef __GNUC__
+#if (__GNUC__ >= 3)
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
* the parameter containing the format, and a2 the index of the first
- * argument. **/
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)
#endif
#endif
-#if HAVE_KRB5_H
+#ifdef HAVE_KRB5_H
#include <krb5.h>
#else
#undef HAVE_KRB5
#endif
-#if HAVE_GSSAPI_H
+#ifdef HAVE_GSSAPI_H
#include <gssapi.h>
#endif
-#if HAVE_GSSAPI_GSSAPI_H
+#ifdef HAVE_GSSAPI_GSSAPI_H
#include <gssapi/gssapi.h>
#endif
-#if HAVE_GSSAPI_GSSAPI_GENERIC_H
+#ifdef HAVE_GSSAPI_GSSAPI_GENERIC_H
#include <gssapi/gssapi_generic.h>
#endif
-#if HAVE_COM_ERR_H
+#ifdef HAVE_COM_ERR_H
#include <com_err.h>
#endif
#include "rewrite.h"
#include "smb.h"
#include "ads.h"
+#include "lib/socket/socket.h"
#include "libcli/ldap/ldap.h"
#include "nameserv.h"
#include "secrets.h"
#include "asn_1.h"
-#include "popt.h"
-
#include "mutex.h"
#include "librpc/rpc/dcerpc.h"
#include "smbd/service.h"
#include "rpc_server/dcerpc_server.h"
#include "request.h"
+#include "signing.h"
#include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h"
#include "cli_context.h"
#include "registry.h"
#include "rap.h"
+#include "ldap_server/ldap_server.h"
#include "gtk/common/gtk-smb.h"
#include "gtk/common/select.h"
+#include "libnet/libnet.h"
+#include "utils/net/net.h"
+
+/* hmm, this really is getting ugly isn't it .... we probably need to
+ have some way to have subsystem includes without including it
+ globally */
+#include "ntvfs/posix/vfs_posix.h"
+
#define malloc_p(type) (type *)malloc(sizeof(type))
#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count)
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
#define VXFS_QUOTA
#endif
+#if HAVE_SYS_ATTRIBUTES_H
+#include <sys/attributes.h>
+#endif
+
+/* mutually exclusive (SuSE 8.2) */
+#if HAVE_ATTR_XATTR_H
+#include <attr/xattr.h>
+#elif HAVE_SYS_XATTR_H
+#include <sys/xattr.h>
+#endif
+
+#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
+
+#define TALLOC_ABORT(reason) smb_panic(reason)
+
#endif /* _INCLUDES_H */