lib/util: make it possible to use debug.h with using xfile.h
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Dec 2008 10:34:41 +0000 (11:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Dec 2008 12:31:29 +0000 (13:31 +0100)
metze

lib/util/debug.h
lib/util/xfile.h

index a5962b04bbf75d7a6b68e3b05f0c2840fa391f45..7518a64e19613ae8fa809781dbcea20fa788f508 100644 (file)
@@ -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
index af90f3f55c6f7e05a774b11f95113bf81d2d1193..1b1592999745ccd7c93ca07f9222ce612c771ad0 100644 (file)
@@ -23,7 +23,7 @@
   see xfile.c for explanations
 */
 
-typedef struct {
+typedef struct _XFILE {
        int fd;
        char *buf;
        char *next;