diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-31 13:33:18 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-31 13:33:18 +0000 |
commit | 32c075e1f01849e161724bbd400ba77244e482cc (patch) | |
tree | 5f083a3f352104f32bb6c902d57fa3f294bd8d4d /elf/tst-tls3.c | |
parent | d6220e9ee38c1c9285221b023346201ec5f511b3 (diff) | |
download | glibc-32c075e1f01849e161724bbd400ba77244e482cc.tar glibc-32c075e1f01849e161724bbd400ba77244e482cc.tar.gz glibc-32c075e1f01849e161724bbd400ba77244e482cc.tar.bz2 glibc-32c075e1f01849e161724bbd400ba77244e482cc.zip |
.
Diffstat (limited to 'elf/tst-tls3.c')
-rw-r--r-- | elf/tst-tls3.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/tst-tls3.c b/elf/tst-tls3.c index c5e501eb4e..84be43575b 100644 --- a/elf/tst-tls3.c +++ b/elf/tst-tls3.c @@ -3,13 +3,15 @@ #include <tls.h> -#include "tls-macros.h" +#ifdef USE_TLS +# include "tls-macros.h" /* One define int variable, two externs. */ COMMON_INT_DECL(foo); VAR_INT_DECL(bar); VAR_INT_DEF(baz); +#endif extern int in_dso (void); @@ -19,6 +21,7 @@ extern int in_dso (void); static int do_test (void) { +#ifdef USE_TLS int result = 0; int *ap, *bp, *cp; @@ -64,6 +67,9 @@ do_test (void) result |= in_dso (); return result; +#else + return 0; +#endif } |