[Piglit] [PATCH] ext_timer_query/time-elapsed: only build on unix
Brian Paul
brianp at vmware.com
Mon Oct 17 09:20:07 PDT 2011
We dont have "sys/time.h" or gettimeofday() on MSVC so the build fails
there. With this patch we simply doesn't build the test on non-Unix
systems.
Alternately, we could write a piglit wrapper for gettimeofday() with
some other implementation for MSVC.
---
tests/spec/ext_timer_query/CMakeLists.gl.txt | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tests/spec/ext_timer_query/CMakeLists.gl.txt b/tests/spec/ext_timer_query/CMakeLists.gl.txt
index f8c1700..68f0551 100644
--- a/tests/spec/ext_timer_query/CMakeLists.gl.txt
+++ b/tests/spec/ext_timer_query/CMakeLists.gl.txt
@@ -11,4 +11,6 @@ link_libraries (
${GLUT_glut_LIBRARY}
)
-add_executable (ext_timer_query-time-elapsed time-elapsed.c)
+IF (UNIX)
+ add_executable (ext_timer_query-time-elapsed time-elapsed.c)
+ENDIF (UNIX)
--
1.7.3.4
More information about the Piglit
mailing list