From: Stefan Metzmacher Date: Wed, 17 Dec 2008 10:34:41 +0000 (+0100) Subject: lib/util: make it possible to use debug.h with using xfile.h X-Git-Tag: samba-4.0.0alpha6~462^2~14^2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b97f17ddf110fd7538e4dc61a8701feb81370992;p=thirdparty%2Fsamba.git lib/util: make it possible to use debug.h with using xfile.h metze --- diff --git a/lib/util/debug.h b/lib/util/debug.h index a5962b04bbf..7518a64e196 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 af90f3f55c6..1b159299974 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;