diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-25 01:06:50 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-30 18:02:48 +0200 |
commit | a5ca1de1eb575294dbc865a2c4ff643efc117ef4 (patch) | |
tree | aa88756d803a4b71fce5b851ba032f80d29086d1 /libthreads | |
parent | ea16c110d8ca67a5460d45600a399078a101ef4f (diff) |
build: Remove checks for 'getgrouplist' and 'uselocale'.
GNU libc has had them for a long time.
* configure.ac: Remove checks for 'getgrouplist' and 'uselocale'.
* libshouldbeinlibc/idvec-impgids.c (_merge_implied_gids): Remove #ifdef
HAVE_GETGROUPLIST and remove #else arm.
* libthreads/cthreads.c: Remove #ifdef HAVE_USELOCALE, keeping its
bodies.
Diffstat (limited to 'libthreads')
-rw-r--r-- | libthreads/cthreads.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c index aef20bed..1361b8b3 100644 --- a/libthreads/cthreads.c +++ b/libthreads/cthreads.c @@ -150,10 +150,7 @@ #include <cthreads.h> #include <mach/mig_support.h> #include "cthread_internals.h" - -#ifdef HAVE_USELOCALE -# include <locale.h> -#endif +#include <locale.h> /* * Thread status bits. @@ -292,11 +289,11 @@ cthread_body(cproc_t self) /* * Execute the fork request. */ -#ifdef HAVE_USELOCALE + /* A fresh thread needs to be bound to the global locale. */ uselocale (LC_GLOBAL_LOCALE); -#endif + t->result = (*(t->func))(t->arg); } /* |