diff options
author | Shai Levy <58184723+shailevi23@users.noreply.github.com> | 2023-10-16 14:26:20 +0300 |
---|---|---|
committer | Shai Levy <shailevy@google.com> | 2023-10-19 11:53:16 +0000 |
commit | 1fa44a7ed981b36af3049dc99b5e8c2754bb51a0 (patch) | |
tree | 887b3c9b32e475aea98e463ae984084846f344ec | |
parent | 50b94305b08a746c21a2c644ffb3cb56915d86ee (diff) | |
download | fio-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-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |