[PATCH dummy 1/2] Only include Xv headers if server supports it

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Tue Mar 27 22:16:28 PDT 2012


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 src/dummy.h        |    4 ++++
 src/dummy_driver.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/dummy.h b/src/dummy.h
index 3442f63..966ab02 100644
--- a/src/dummy.h
+++ b/src/dummy.h
@@ -5,8 +5,10 @@
 
 #include "xf86Cursor.h"
 
+#ifdef XvExtension
 #include "xf86xv.h"
 #include <X11/extensions/Xv.h>
+#endif
 #include <string.h>
 
 /* Supported chipsets */
@@ -57,7 +59,9 @@ typedef struct dummyRec
 
     Bool screenSaver;
     Bool video;
+#ifdef XvExtension
     XF86VideoAdaptorPtr overlayAdaptor;
+#endif
     int overlay;
     int overlay_offset;
     int videoKey;
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 6533b27..791855f 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -32,8 +32,10 @@
 
 #include "picturestr.h"
 
+#ifdef XvExtension
 #include "xf86xv.h"
 #include <X11/extensions/Xv.h>
+#endif
 
 /*
  * Driver data structures.
-- 
1.7.9



More information about the xorg-devel mailing list