about summary refs log tree commit diff
path: root/sysdeps/generic/enbl-secure.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/enbl-secure.c')
-rw-r--r--sysdeps/generic/enbl-secure.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/generic/enbl-secure.c b/sysdeps/generic/enbl-secure.c
index b4c8e00017..fdf6f154f6 100644
--- a/sysdeps/generic/enbl-secure.c
+++ b/sysdeps/generic/enbl-secure.c
@@ -26,9 +26,8 @@
 /* Safest assumption, if somehow the initializer isn't run.  */
 int __libc_enable_secure = 1;
 
-static void
-__attribute__ ((unused, constructor))
-init_secure (void)
+void
+__libc_init_secure (void)
 {
   __libc_enable_secure = (__geteuid () != __getuid () ||
 			  __getegid () != __getgid ());