summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index c3287985adc..5b2f50d896f 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -2720,7 +2720,9 @@ ignore_library (name)
}
#endif /* COLLECT_EXPORT_LIST */
-extern char *ldgetname PARAMS ((struct ldfile *, void *));
+#if defined (HAVE_DECL_LDGETNAME) && !HAVE_DECL_LDGETNAME
+extern char *ldgetname PARAMS ((LDFILE *, GCC_SYMENT *));
+#endif
/* COFF version to scan the name list of the loaded program for
the symbols g++ uses for static constructors and destructors.