1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/include
Lukas Slebodnik 9643a4b1ef lib/util: Include DEBUG macro in internal header files before samba_util.h
It's best practice to include external header files before internal
header files. In this case internal DEBUG macro cannot be defined and
therefore samba version of debug macro will be included
in header file "util/fault.h".

In file included from example.c:27:0:
src/util/util.h:127:0: error: "DEBUG" redefined [-Werror]
 #define DEBUG(level, format, ...) do { \
 ^
In file included from /usr/include/samba-4.0/util/fault.h:29:0,
                 from /usr/include/samba-4.0/samba_util.h:62,
                 from /usr/include/samba-4.0/ndr.h:30,
                 from example.c:24:
/usr/include/samba-4.0/util/debug.h:182:0: note: this is the location of the previous definition
 #define DEBUG( level, body ) \
 ^
  CC       src/providers/ad/libsss_ad_common_la-ad_domain_info.lo
cc1: all warnings being treated as errors

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11033

Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar 11 18:47:22 CET 2015 on sn-devel-104
2015-03-11 18:47:22 +01:00
..
ads.h Avoid overriding default ccache for ads operations. 2012-09-12 21:18:09 +02:00
adt_tree.h
async_smb.h
auth_generic.h s3-librpc: Add cli_rpc_pipe_open_with_creds() 2014-10-17 12:57:07 +02:00
auth_info.h
auth.h auth: Provide a way to use the auth stack for winbindd authentication 2014-06-11 10:18:26 +02:00
client.h s3:libsmb: remove unused cli_set_username() function 2014-10-17 12:57:07 +02:00
ctdb_srvids.h
ctdbd_conn.h s3:param: move lp_ctdbd_socket() to ctdbd_conn.c 2014-03-24 17:09:10 +01:00
debugparse.h
event.h s3:include: avoid TEVENT_COMPAT_DEFINES 2013-02-19 23:48:04 +01:00
fake_file.h
g_lock.h s3:include: add forward declaration for struct messaging_context; in g_lock.h 2013-10-17 08:48:56 +13:00
idmap_autorid_tdb.h autorid: add high_id to range config and fill it where we also fill range->low_id. 2014-04-25 15:35:09 +02:00
idmap.h
includes.h lib/util: Include DEBUG macro in internal header files before samba_util.h 2015-03-11 18:47:22 +01:00
intl.h
krb5_env.h
libsmb_internal.h s3:libsmb: SMBC_getatr use pathinfo3 for second try 2013-10-30 15:23:51 -07:00
libsmbclient.h Fix some blank line endings 2013-06-21 19:57:06 +02:00
local.h param: move SMB2 defaults to lib/param and use in loadparm_init 2014-02-12 13:17:14 +13:00
locking.h smbd: Move "struct byte_range_lock" definition to brlock.c 2013-09-11 08:27:11 +02:00
lsa.h s3: Move init_lsa_ref_domain_list to lib 2014-09-29 10:52:47 +02:00
MacExtensions.h Fix AFP_BackupTime byte order and use ISO C99 integer types 2014-08-18 17:42:50 +02:00
mangle.h
messages.h messaging3: Add messaging_handler_send/recv 2014-12-16 18:56:03 +01:00
msdfs.h
nameserv.h
nss_info.h
nt_printing.h printing: rework nt_printer_guid_store to return errors 2015-02-18 10:14:09 +01:00
ntdomain.h
ntioctl.h Fix bug #10097 - MacOSX 10.9 will not follow path-based DFS referrals handed out by Samba. 2013-08-19 22:21:34 +02:00
ntquotas.h
passdb.h s3:passdb: add optional get_trusteddom_creds() hooks 2014-12-18 04:22:05 +01:00
popt_common.h s3fs-popt: Add function to burn the commandline password. 2012-11-08 10:14:41 -08:00
printing.h printing: add jobid_to_sysjob helper function 2014-10-30 06:52:04 +01:00
proto.h s3/vfs: change fallocate mode flags from enum->uint32_t 2015-03-09 21:27:07 +01:00
registry.h
rpc_dce.h
rpc_misc.h
safe_string.h s3: smbd: Change the function signature of srvstr_push() from returning a length to returning an NTSTATUS with a length param. 2014-09-16 01:56:54 +02:00
samba_linux_quota.h
secrets.h Remove an unused function call. 2015-02-13 23:29:53 +01:00
serverid.h lib: Remove unused serverid_register_msg_flags() 2014-07-31 18:49:46 +02:00
session.h Add protocol version to smbstatus output 2014-05-22 18:37:27 +02:00
smb_acls.h smbd: Add mem_ctx to sys_acl_init() and all callers 2012-10-11 12:25:11 +11:00
smb_krb5.h
smb_ldap.h
smb_macros.h lib: Slightly simplify strupper_m 2014-11-14 00:31:16 +01:00
smb_perfcount.h
smb_share_modes.h
smb.h Happy New Year 2015! 2015-01-01 02:47:59 +01:00
smbldap.h s3:lib: s/struct timed_event/struct tevent_timer 2013-02-19 23:47:58 +01:00
smbprofile.h s3:smbprofile: profile the system and user space cpu time 2015-03-06 12:31:10 +01:00
srvstr.h s3:smbd: convert srvstr_pull_req_talloc() into a function 2013-04-10 00:13:45 +02:00
stamp-h.in
sysquotas.h
talloc_dict.h
tldap_util.h
tldap.h
trans2.h
transfer_file.h
util_tdb.h lib: Move tdb lock timeout fns to source3 2014-09-18 20:36:11 +02:00
vfs_macros.h s3/vfs: remove unused SMB_VFS_DISK_FREE() small_query parameter 2015-02-17 05:37:20 +01:00
vfs.h system: add hole punch support to sys_fallocate() 2015-03-09 21:27:07 +01:00