summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-03-07 11:31:20 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-03-07 13:02:04 +0000
commit5d357f140ddc09c794e907181cc5ae9220112b20 (patch)
treea17d31f5519b2e8318eb5534306b09f37dc004f6
parent3510f7b2d9886a7258172c427f6eaa0109c762bb (diff)
glx-swap-event: Prevent build failures when GLX_INTEL_swap_event is not available.
-rw-r--r--tests/glx/glx-swap-event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index 65944a6a4..2e245ac51 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -34,7 +34,7 @@
#include <sys/time.h>
-#ifdef GLX_MESA_swap_control
+#if defined(GLX_MESA_swap_control) && defined(GLX_INTEL_swap_event)
/* return current time (in seconds) */
@@ -527,4 +527,4 @@ main(int argc, char *argv[])
return 0;
}
-#endif /* GLX_MESA_swap_control */
+#endif /* GLX_MESA_swap_control && GLX_INTEL_swap_event */