From 0ee9b3bd8d7c6206136e45136060778bc0c55efb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 7 Sep 2020 04:52:21 +0200 Subject: fix gcc10 issue --- test/nptl/tst-atfork2mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #include +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) -- cgit v1.2.3