From 69553a9bd8a2827f1602a593d3eebbe329fb1f7f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 2 Feb 2005 19:44:07 +0000 Subject: * sysdeps/mach/hurd/tls.h: Include (dtv_t): Change pointer type to be a struct which also contains information whether the memory pointed to is static TLS or not. * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it. * shadow/sgetspent_r.c (FALSE): Macro renamed to ... (FALSEP): ... this. Updated all references. * libio/fmemopen.c: Include . --- sysdeps/generic/syslog.c | 3 +++ sysdeps/mach/hurd/tls.h | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/syslog.c b/sysdeps/generic/syslog.c index 176265c29d..9c8f422aad 100644 --- a/sysdeps/generic/syslog.c +++ b/sysdeps/generic/syslog.c @@ -77,6 +77,9 @@ static void closelog_internal(void); static void sigpipe_handler (int); #endif +#ifndef send_flags +# define send_flags 0 +#endif struct cleanup_arg { diff --git a/sysdeps/mach/hurd/tls.h b/sysdeps/mach/hurd/tls.h index bc15b4dab6..cce42ef374 100644 --- a/sysdeps/mach/hurd/tls.h +++ b/sysdeps/mach/hurd/tls.h @@ -1,5 +1,5 @@ /* Definitions for thread-local data handling. Hurd version. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2005 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 @@ -23,6 +23,7 @@ #if defined HAVE_TLS_SUPPORT && !defined ASSEMBLER # include +# include # include # include @@ -31,7 +32,11 @@ typedef union dtv { size_t counter; - void *pointer; + struct + { + void *val; + bool is_static; + } pointer; } dtv_t; -- cgit v1.2.3