bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: pthread_sigmask() detected incorrectly on MinGW by configure


From: Pavel Fedin
Subject: RE: pthread_sigmask() detected incorrectly on MinGW by configure
Date: Thu, 23 Apr 2015 15:24:37 +0300

 Hello!

> Any implementation that defines 'pthread_sigmask' only as a macro, and
> not as a function, doesn't conform to POSIX and we should be able to
> reject it at compile-time.  Perhaps you can suggest a patch along those
> lines?

 Well... We could do a preprocessor-based test in configure. Something like:
--- cut ---
if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
  dnl pthread_sigmask is available with -pthread or -lpthread.
  AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
#include <signal.h>
#ifdef pthread_sigmask
#error is a macro
#endif
]])],
    [
     LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
    ],
    [
     HAVE_PTHREAD_SIGMASK=0
     REPLACE_PTHREAD_SIGMASK=1
    ])
--- cut ---
 Would that do ?

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia





reply via email to

[Prev in Thread] Current Thread [Next in Thread]