Only include Xv headers if server supports it

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Yaakov Selkowitz 2012-03-28 00:06:32 -05:00
parent 02918fd534
commit 668223a665
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -32,8 +32,10 @@
#include "picturestr.h"
#ifdef XvExtension
#include "xf86xv.h"
#include <X11/extensions/Xv.h>
#endif
/*
* Driver data structures.