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.veli...@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 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit