summaryrefslogtreecommitdiff
path: root/dri3/dri3.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-03 09:56:02 -0800
committerKeith Packard <keithp@keithp.com>2013-11-04 18:53:36 -0800
commitaaf0e29619196a283fee7ead2020a91032d84f48 (patch)
tree5adc6b736ccc25686f909df8eeafcedb9160450d /dri3/dri3.h
parent33c85beed521c9db140cadd8c5aa9992398ee1fe (diff)
Disable DRI3 and sync fence FD functions if xshmfence isn't available
Make sure the server can build when the xshmfence library isn't present Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dri3/dri3.h')
-rw-r--r--dri3/dri3.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dri3/dri3.h b/dri3/dri3.h
index 7774c8757..7c0c33018 100644
--- a/dri3/dri3.h
+++ b/dri3/dri3.h
@@ -23,6 +23,10 @@
#ifndef _DRI3_H_
#define _DRI3_H_
+#include <xorg-server.h>
+
+#ifdef DRI3
+
#include <X11/extensions/dri3proto.h>
#include <randrstr.h>
@@ -56,4 +60,6 @@ typedef struct dri3_screen_info {
extern _X_EXPORT Bool
dri3_screen_init(ScreenPtr screen, dri3_screen_info_ptr info);
+#endif
+
#endif /* _DRI3_H_ */