diff --git a/configure.ac b/configure.ac index 1670a4115a40133c8427e554741730a17053ca56..70180ccec7a744368dc94409672e7e20225c4150 100644 --- a/configure.ac +++ b/configure.ac @@ -285,8 +285,10 @@ AC_CACHE_CHECK([whether pthread_sigmask does anything], #include #include ]], [[ - int (*foo)(int, const sigset_t *, sigset_t *) = &pthread_sigmask; - return !foo; + #ifdef pthread_sigmask + int (*foo)(int, const sigset_t *, sigset_t *) = &pthread_sigmask; + return !foo; + #endif ]])], [lv_cv_pthread_sigmask_works=yes], [lv_cv_pthread_sigmask_works=no])]) if test "x$lv_cv_pthread_sigmask_works" != xyes; then AC_DEFINE([FUNC_PTHREAD_SIGMASK_BROKEN], [1],