summaryrefslogtreecommitdiff
path: root/csu/libc-start.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2008-11-23 21:17:41 +0100
committerThomas Schwinge <thomas@schwinge.name>2010-01-25 21:40:49 +0100
commitc1c2b810c848f6ef082fa8cfb2bf501b850f0797 (patch)
treed829fab378ba5959b4e249033fb1f910de8be57a /csu/libc-start.c
parent9bd608be06fc824cffd42ab8a81b210d4ef52a91 (diff)
glibc-2.8/debian/patches/hurd-i386/local-tls-support.diff 3151
Diffstat (limited to 'csu/libc-start.c')
-rw-r--r--csu/libc-start.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/csu/libc-start.c b/csu/libc-start.c
index a14ed71616..b21aef952c 100644
--- a/csu/libc-start.c
+++ b/csu/libc-start.c
@@ -134,10 +134,12 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
}
# endif
+#ifndef __GNU__
/* Initialize the thread library at least a bit since the libgcc
functions are using thread functions if these are available and
we need to setup errno. */
__pthread_initialize_minimal ();
+#endif
/* Set up the stack checker's canary. */
uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard ();