diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-20 20:41:55 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-20 20:41:55 +0000 |
commit | 31a834126c0cd12ac316cab98e7fef7bf60d1f35 (patch) | |
tree | 7c40584bb08c27e62cb03fa56f6241447e67904c /gcc/collect2.c | |
parent | ef5651d00a92cf1245267f76ee0b95ee2c4d15b9 (diff) | |
download | gcc-31a834126c0cd12ac316cab98e7fef7bf60d1f35.tar.gz |
* collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
prototyping.
* configure.in: Check for <ldfcn.h> and ldgetname() prototype.
* config.in, configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61511 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 4 |
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. |