summaryrefslogtreecommitdiff
path: root/test/nptl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-09-07 04:52:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2020-09-07 04:52:21 +0200
commit0ee9b3bd8d7c6206136e45136060778bc0c55efb (patch)
tree9a0c33df780baed51dfc3c5aa3188cafab704d5a /test/nptl
parent228705daef79000f56c99e9a17d4fed952164164 (diff)
fix gcc10 issue
Diffstat (limited to 'test/nptl')
-rw-r--r--test/nptl/tst-atfork2mod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nptl/tst-atfork2mod.c b/test/nptl/tst-atfork2mod.c
index 7c592b4..8259721 100644
--- a/test/nptl/tst-atfork2mod.c
+++ b/test/nptl/tst-atfork2mod.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
+extern void *__dso_handle __attribute__ ((__weak__));
extern int val;
@@ -46,7 +47,6 @@ static void
__attribute__ ((constructor))
init (void)
{
- extern void *__dso_handle;
printf ("dsohandle = %p\n", __dso_handle);
if (pthread_atfork (prepare, parent, child) != 0)