Browse Source

fix gcc10 issue

Waldemar Brodkorb 3 years ago
parent
commit
0ee9b3bd8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/nptl/tst-atfork2mod.c

+ 1 - 1
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)