]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdlib/tst-tls-atexit-lib.c
hurd: Fix build
[thirdparty/glibc.git] / stdlib / tst-tls-atexit-lib.c
index b67d62fb9e909611dbc26ae40f403ae6b09da404..52da1b839b9a94795b38c7c94b3adcf3d88565c7 100644 (file)
@@ -1,5 +1,5 @@
 /* Verify that DSO is unloaded only if its TLS objects are destroyed - the DSO.
-   Copyright (C) 2013-2014 Free Software Foundation, Inc.
+   Copyright (C) 2013-2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -17,8 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <stdlib.h>
-
-extern void *__dso_handle;
+#include <dso_handle.h>
 
 typedef struct
 {
@@ -31,7 +30,7 @@ void A_dtor (void *obj)
   ((A *)obj)->val = obj;
 }
 
-void do_foo (void)
+void reg_dtor (void)
 {
   static __thread A b;
   __cxa_thread_atexit_impl (A_dtor, &b, __dso_handle);