diff options
author | Martin Schwenke <martin@meltin.net> | 2014-09-08 16:32:46 +1000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-09-19 18:11:11 +0200 |
commit | e0a5c43bd0ca097936604169177d5eb44a6e42a8 (patch) | |
tree | 53c637134dfc4967f768fa87e33c499fc8fdb68c /lib/util/debug.c | |
parent | f8bd8924caf9f56666facfbe93778dd01288be6e (diff) | |
download | samba-e0a5c43bd0ca097936604169177d5eb44a6e42a8.tar.gz samba-e0a5c43bd0ca097936604169177d5eb44a6e42a8.tar.xz samba-e0a5c43bd0ca097936604169177d5eb44a6e42a8.zip |
debug: Standalone compile without includes.h
Compiling utilities with includes.h is confusing because includes.h
could come from source3, source4 or ctdb. Utilities should be
independent of such things.
Add a minimal set of fined-grained includes that attempts to avoid the
catch-all samba_util.h. A comment indicates what is used from
samba_util.h so that future clean-ups are easier.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/util/debug.c')
-rw-r--r-- | lib/util/debug.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 2779dd3df8..00595957aa 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -19,11 +19,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" +#include <talloc.h> +#include "replace.h" #include "system/filesys.h" #include "system/syslog.h" -#include "lib/util/time_basic.h" -#include "lib/util/close_low_fd.h" +#include "system/locale.h" +#include "time_basic.h" +#include "close_low_fd.h" +#include "memory.h" +#include "samba_util.h" /* LIST_SEP */ +#include "debug.h" /* define what facility to use for syslog */ #ifndef SYSLOG_FACILITY |