[Piglit] [PATCH 01/12] cmake: don't use open_s with mingw
Emil Velikov
emil.l.velikov at gmail.com
Tue Aug 12 10:18:41 PDT 2014
The function is part of the secapi, which is not available
under WinXP. Building piglit with it will result in broken
tests.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36b06fc..5807f63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -364,7 +364,9 @@ check_function_exists(asprintf HAVE_ASPRINTF)
check_function_exists(ffs HAVE_FFS)
check_function_exists(strchrnul HAVE_STRCHRNUL)
check_function_exists(strndup HAVE_STRNDUP)
+if(NOT MINGW)
check_function_exists(fopen_s HAVE_FOPEN_S)
+endif()
check_function_exists(setrlimit HAVE_SETRLIMIT)
check_include_file(sys/time.h HAVE_SYS_TIME_H)
--
2.0.2
More information about the Piglit
mailing list