about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/init-misc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/misc/init-misc.c b/misc/init-misc.c
index e079000494..b62f3921ad 100644
--- a/misc/init-misc.c
+++ b/misc/init-misc.c
@@ -26,11 +26,17 @@ weak_alias (__progname_full, program_invocation_name)
 weak_alias (__progname, program_invocation_short_name)
 
 
-static void __init_misc (int argc, char **argv, char **envp)
+#ifdef HAVE_GNU_LD
+static
+#endif /* HAVE_GNU_LD */
+void __init_misc (int argc, char **argv, char **envp)
   __attribute__ ((unused));
 
 
-static void
+#ifdef HAVE_GNU_LD
+static
+#endif /* HAVE_GNU_LD */
+void
 __init_misc (int argc, char **argv, char **envp)
 {
   if (argv && argv[0])