aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShai Levy <58184723+shailevi23@users.noreply.github.com>2023-10-16 14:26:20 +0300
committerShai Levy <shailevy@google.com>2023-10-19 11:53:16 +0000
commit1fa44a7ed981b36af3049dc99b5e8c2754bb51a0 (patch)
tree887b3c9b32e475aea98e463ae984084846f344ec
parent50b94305b08a746c21a2c644ffb3cb56915d86ee (diff)
downloadfio-1fa44a7ed981b36af3049dc99b5e8c2754bb51a0.tar.gz
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 <shailevy23@gmail.com>.
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 36184a58a..742cb7c53 100755
--- a/configure
+++ b/configure
@@ -864,7 +864,8 @@ cat > $TMPC <<EOF
#include <signal.h> /* 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