]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/tst-dlopenfailmod2.c
test-container: Fix "unused code" warnings on HURD
[thirdparty/glibc.git] / elf / tst-dlopenfailmod2.c
index 8dc3a9f5afe97a113e3d29646b69b679357befcc..d7cbd70ad671bf51d5e6a584b2ac40515b2a3c09 100644 (file)
@@ -1,5 +1,5 @@
 /* Module which depends on on a NODELETE module, and can be loaded.
-   Copyright (C) 2019-2020 Free Software Foundation, Inc.
+   Copyright (C) 2019-2022 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
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <pthread.h>
 #include <stdio.h>
 
-/* Force linking against libpthread.  */
-void *pthread_create_reference = pthread_create;
+/* Force linking against tst-dlopenfailnodelmod.so.  */
+void no_delete_mod_function (void);
+void *function_reference = no_delete_mod_function;
 
 static void __attribute__ ((constructor))
 init (void)