[PATCH 2/2] test: tls: fix users of internal link_map members

Baruch Siach baruch at tkos.co.il
Mon Aug 26 17:45:53 UTC 2013


Fix the following and similar build failures:

tst-tls8.c: In function 'do_test':
tst-tls8.c:44:59: error: 'struct link_map' has no member named 'l_tls_modid'
tst-tls8.c:45:64: error: 'struct link_map' has no member named 'l_tls_modid'
tst-tls8.c:50:53: error: 'struct link_map' has no member named 'l_tls_modid'

Since commit a2fdd604d (link.h: guard TLS related internals of struct link_map
with _LIBC), link.h does not expose internal members of struct link_map to
external code. Include the internal version of link.h instead.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 test/tls/tst-tls6.c | 2 +-
 test/tls/tst-tls7.c | 2 +-
 test/tls/tst-tls8.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/tls/tst-tls6.c b/test/tls/tst-tls6.c
index e692aca..26c98f6 100644
--- a/test/tls/tst-tls6.c
+++ b/test/tls/tst-tls6.c
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 
 #include <tls.h>
-#include <link.h>
+#include "../../include/link.h"
 #ifdef __UCLIBC__
 #include "dl-elf.h"
 #include "dl-hash.h"
diff --git a/test/tls/tst-tls7.c b/test/tls/tst-tls7.c
index 41da270..62f0811 100644
--- a/test/tls/tst-tls7.c
+++ b/test/tls/tst-tls7.c
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 
 #include <tls.h>
-#include <link.h>
+#include "../../include/link.h"
 #ifdef __UCLIBC__
 #include "dl-elf.h"
 #include "dl-hash.h"
diff --git a/test/tls/tst-tls8.c b/test/tls/tst-tls8.c
index 2541609..e667d83 100644
--- a/test/tls/tst-tls8.c
+++ b/test/tls/tst-tls8.c
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 
 #include <tls.h>
-#include <link.h>
+#include "../../include/link.h"
 #ifdef __UCLIBC__
 #include "dl-elf.h"
 #include "dl-hash.h"
-- 
1.8.4.rc3



More information about the uClibc mailing list