diff options
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 1 | ||||
-rw-r--r-- | linuxthreads/no-tsd.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 30917d367d..4b86627f17 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -17,6 +17,7 @@ * manager.c (pthread_handle_create): Likewise. * specific.c (libc_internal_tsd_set, libc_internal_tsd_get): Conditionalize these on [!(USE_TLS && HAVE___THREAD)]. + * no-tsd.c: Conditionalize contents on [!(USE_TLS && HAVE___THREAD)]. * errno.c [USE_TLS && HAVE___THREAD] (__h_errno_location, __res_state): Don't define these at all. diff --git a/linuxthreads/no-tsd.c b/linuxthreads/no-tsd.c index 84abb6f405..7b5f7ef949 100644 --- a/linuxthreads/no-tsd.c +++ b/linuxthreads/no-tsd.c @@ -1,5 +1,5 @@ /* libc-internal interface for thread-specific data. - Copyright (C) 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1998,99,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,8 @@ #include <sys/cdefs.h> /* for __const */ #include <bits/libc-tsd.h> +#if !(USE_TLS && HAVE___THREAD) + /* This file provides uinitialized (common) definitions for the hooks used internally by libc to access thread-specific data. @@ -32,3 +34,5 @@ void *(*__libc_internal_tsd_get) (enum __libc_tsd_key_t); int (*__libc_internal_tsd_set) (enum __libc_tsd_key_t, __const void *); + +#endif /* !(USE_TLS && HAVE___THREAD) */ |