[PATCH:libXfont 1/3] Allow enabling src/fc DEBUG helpers via CPPFLAGS

Alan Coopersmith alan.coopersmith at oracle.com
Fri Apr 25 14:20:01 PDT 2014


Instead of editing fsio.h to turn on debugging logs, just add
-DDEBUG to CPPFLAGS when building.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/fc/fsio.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/fc/fsio.h b/src/fc/fsio.h
index 2bb8e0b..fa1e7d8 100644
--- a/src/fc/fsio.h
+++ b/src/fc/fsio.h
@@ -26,8 +26,9 @@
 #ifndef	_FSIO_H_
 #define	_FSIO_H_
 
-#undef DEBUG
+#ifdef DEBUG
 #define	REQUEST_LOG_SIZE	100
+#endif
 
 typedef struct _fs_fpe_alternate {
     char       *name;
-- 
1.7.9.2



More information about the xorg-devel mailing list