summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-17 11:34:41 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 13:31:29 +0100
commitb97f17ddf110fd7538e4dc61a8701feb81370992 (patch)
tree189af5a9c090c855de377df12fe3b477978cca74
parent46eda790905e0ca70d9ecd2822578dbfde456e63 (diff)
downloadsamba-b97f17ddf110fd7538e4dc61a8701feb81370992.tar.gz
samba-b97f17ddf110fd7538e4dc61a8701feb81370992.tar.bz2
samba-b97f17ddf110fd7538e4dc61a8701feb81370992.zip
lib/util: make it possible to use debug.h with using xfile.h
metze
-rw-r--r--lib/util/debug.h3
-rw-r--r--lib/util/xfile.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/util/debug.h b/lib/util/debug.h
index a5962b04bb..7518a64e19 100644
--- a/lib/util/debug.h
+++ b/lib/util/debug.h
@@ -133,6 +133,7 @@ _PUBLIC_ void register_debug_handlers(const char *name, struct debug_ops *ops);
*/
_PUBLIC_ void dbgtext(const char *format, ...) PRINTF_ATTRIBUTE(1,2);
-extern XFILE *dbf;
+struct _XFILE;
+extern struct _XFILE *dbf;
#endif
diff --git a/lib/util/xfile.h b/lib/util/xfile.h
index af90f3f55c..1b15929997 100644
--- a/lib/util/xfile.h
+++ b/lib/util/xfile.h
@@ -23,7 +23,7 @@
see xfile.c for explanations
*/
-typedef struct {
+typedef struct _XFILE {
int fd;
char *buf;
char *next;