fix missing declarations for pthread_join extensions in source file
authorRich Felker <dalias@aerifal.cx>
Wed, 31 Jul 2019 21:18:21 +0000 (17:18 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2019 04:08:23 +0000 (00:08 -0400)
per policy, define the feature test macro to get declarations for the
pthread_tryjoin_np and pthread_timedjoin_np functions. in the past
this has been only for checking; with 32-bit archs getting 64-bit
time_t it will also be necessary for symbols to get redirected
correctly.

src/thread/pthread_join.c

index b8813e0265e625946bd48dbdcc46cb925110e31c..17dae85d7086155a78b89052b6f0b551429a2987 100644 (file)
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include "pthread_impl.h"
 #include <sys/mman.h>