Fix finalize.c compilation in 'strict ANSI' mode
authorIvan Maidanski <ivmai@mail.ru>
Thu, 23 Mar 2017 20:12:07 +0000 (23:12 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 23 Mar 2017 20:12:07 +0000 (23:12 +0300)
commit9141c97308d70ee432911af94c895033a521d654
tree628c23b04323991436e1fcbe175a6c5e35b25056
parent9442667628d63142d74652dbc096f69dcf1873d1
Fix finalize.c compilation in 'strict ANSI' mode

This and some other GC .c files include gc_pmark.h directly (not
gc_priv.h), so the compiler complains that sigset_t (used in
gc_pthread_redirects.h) is undefined if 'strict ANSI' mode is on and
_GNU_SOURCE is not defined before including system headers.

* include/private/gc_pmark.h [(__linux__ || __GLIBC__ || __GNU__)
&& GC_PTHREADS && !GC_NO_PTHREAD_SIGMASK] (_GNU_SOURCE): Define (before
including other headers).
include/private/gc_pmark.h