Module Name: src
Committed By: joerg
Date: Wed Mar 9 23:50:41 UTC 2011
Modified Files:
src/lib/libc/tls: tls.c
Log Message:
Define namespace remap macros before including sys/tls.h.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/tls/tls.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/tls/tls.c
diff -u src/lib/libc/tls/tls.c:1.1 src/lib/libc/tls/tls.c:1.2
--- src/lib/libc/tls/tls.c:1.1 Wed Mar 9 23:10:06 2011
+++ src/lib/libc/tls/tls.c Wed Mar 9 23:50:40 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: tls.c,v 1.1 2011/03/09 23:10:06 joerg Exp $ */
+/* $NetBSD: tls.c,v 1.2 2011/03/09 23:50:40 joerg Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,17 +30,17 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tls.c,v 1.1 2011/03/09 23:10:06 joerg Exp $");
+__RCSID("$NetBSD: tls.c,v 1.2 2011/03/09 23:50:40 joerg Exp $");
#include "namespace.h"
+#define _rtld_tls_allocate __libc_rtld_tls_allocate
+#define _rtld_tls_free __libc_rtld_tls_free
+
#include <sys/tls.h>
#if defined(__HAVE_TLS_VARIANT_I) || defined(__HAVE_TLS_VARIANT_II)
-#define _rtld_tls_allocate __libc_rtld_tls_allocate
-#define _rtld_tls_free __libc_rtld_tls_free
-
#include <sys/param.h>
#include <sys/mman.h>
#include <link_elf.h>