From 615308a8efa422d3697ff84afb73c6e8f92b738d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 14 Jun 2014 10:05:34 -0700 Subject: [PATCH] pthread: port to hosts like AIX that need macros like _THREAD_SAFE * modules/pthread (Depends-on): Add 'extensions'. (configure.ac-early): New section. --- ChangeLog | 6 ++++++ modules/pthread | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index cd19897..0ae08ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-06-14 Paul Eggert + + pthread: port to hosts like AIX that need macros like _THREAD_SAFE + * modules/pthread (Depends-on): Add 'extensions'. + (configure.ac-early): New section. + 2014-06-13 Paul Eggert regex: don't be multithreaded if USE_UNLOCKED_IO. diff --git a/modules/pthread b/modules/pthread index e583929..3fb3920 100644 --- a/modules/pthread +++ b/modules/pthread @@ -7,10 +7,15 @@ lib/pthread.in.h m4/pthread.m4 Depends-on: +extensions extern-inline sched time +configure.ac-early: +AC_DEFINE([_REENTRANT], 1, [For thread-safety on OSF/1, Solaris.]) +AC_DEFINE([_THREAD_SAFE], 1, [For thread-safety on AIX, FreeBSD.]) + configure.ac: gl_PTHREAD_CHECK gl_MODULE_INDICATOR([pthread]) -- 1.9.3