From: Shai Levy <58184723+shailevi23@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:26:20 +0000 (+0300) Subject: configure: improve pthread_sigmask detection. X-Git-Tag: fio-3.36~1^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1fa44a7ed981b36af3049dc99b5e8c2754bb51a0;p=fio.git configure: improve pthread_sigmask detection. On Windows system, pthread_sigmask is defined as a noop which will trigger unused variable warning for sigmask. By triggering the same warning in the configure script, we make CONFIG_PTHREAD_SIGMASK undefined in the Windows msys2 build. Signed-off-by: Shai Levy . --- diff --git a/configure b/configure index 36184a58..742cb7c5 100755 --- a/configure +++ b/configure @@ -864,7 +864,8 @@ cat > $TMPC < /* pthread_sigmask() */ int main(void) { - return pthread_sigmask(0, NULL, NULL); + sigset_t sigmask; + return pthread_sigmask(0, NULL, &sigmask); } EOF if compile_prog "" "$LIBS" "pthread_sigmask" ; then