Fix 'implicit declaration of pthread_sigmask' compiler warning
authorIvan Maidanski <ivmai@mail.ru>
Fri, 31 Mar 2017 15:46:43 +0000 (18:46 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Mar 2017 15:53:16 +0000 (18:53 +0300)
commit097011075ccc0a238e938bc548c07f09a773e6c6
treec180354914a442ddb7d8e32db0c6c8924b1322d4
parent2a1b2bb2226e6f3e7fd9268f66ddd304c4901587
Fix 'implicit declaration of pthread_sigmask' compiler warning
(fix commit 1554297)

* include/gc_pthread_redirects.h [GC_NO_PTHREAD_SIGMASK]: Include
signal.h even GC_pthread_sigmask is not declared (otherwise
pthread_sigmask is redefined to GC_pthread_sigmask first and then
signal.h is included thus causing REAL(pthread_sigmask) to stay
undefined).
* include/gc_pthread_redirects.h [GC_NO_PTHREAD_SIGMASK]
(GC_pthread_sigmask): Define it also if _BSD_SOURCE or _GNU_SOURCE.
* tests/test.c [CPPCHECK] (GC_PTHREAD_SIGMASK_NEEDED): Do not define
(because defining _GNU_SOURCE is sufficient to have GC_pthread_sigmask
declared).
* tests/test.c [CPPCHECK] (_GNU_SOURCE): Do not define unless GC_PTHREADS.
include/gc_pthread_redirects.h
tests/test.c