Module Name:    src
Committed By:   joerg
Date:           Sat Apr  2 12:53:33 UTC 2011

Modified Files:
        src/tests/libexec/ld.elf_so/helper_dso1: h_helper_dso1.c

Log Message:
Don't fail on platforms without TLS


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
    src/tests/libexec/ld.elf_so/helper_dso1/h_helper_dso1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/libexec/ld.elf_so/helper_dso1/h_helper_dso1.c
diff -u src/tests/libexec/ld.elf_so/helper_dso1/h_helper_dso1.c:1.1 src/tests/libexec/ld.elf_so/helper_dso1/h_helper_dso1.c:1.2
--- src/tests/libexec/ld.elf_so/helper_dso1/h_helper_dso1.c:1.1	Thu Mar 31 23:34:48 2011
+++ src/tests/libexec/ld.elf_so/helper_dso1/h_helper_dso1.c	Sat Apr  2 12:53:32 2011
@@ -29,6 +29,11 @@
 
 #include <poll.h>
 #include <stddef.h>
+#include <sys/tls.h>
+
+#if !defined(__HAVE_TLS_VARIANT_I) && !defined(__HAVE_TLS_VARIANT_II)
+#define	__thread
+#endif
 
 extern int sleep_init;
 extern int sleep_fini;

Reply via email to