summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-01-20 20:41:55 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-01-20 20:41:55 +0000
commit351df80413984221416167a2e0c6e28732bffb4d (patch)
tree7c40584bb08c27e62cb03fa56f6241447e67904c /gcc/collect2.c
parente32894124dc9860e977b8ebe23b9b21a2ca066ec (diff)
downloadgcc-351df80413984221416167a2e0c6e28732bffb4d.tar.gz
collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before prototyping.
* collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before prototyping. * configure.in: Check for <ldfcn.h> and ldgetname() prototype. * config.in, configure: Regenerate. From-SVN: r61511
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.