diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-25 11:54:15 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-25 11:54:15 +0000 |
commit | 430240549e83cae699ad93614fd6420dd3782af2 (patch) | |
tree | 66906c798bbc44ebda04e72f94dc0449df47af44 /libjava/boehm.cc | |
parent | 0bdbecff095ec2a6951776dc386093042d1ffb0c (diff) | |
download | gcc-430240549e83cae699ad93614fd6420dd3782af2.tar.gz |
2006-04-25 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
* boehm.cc: Don't include link.h.
(_Jv_RegisterLibForGc): Cast away const when calling dladdr().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113246 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index 9ee633b34c3..d939f41497e 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -36,7 +36,6 @@ details. */ #undef _GNU_SOURCE #define _GNU_SOURCE #include <dlfcn.h> -#include <link.h> #endif extern "C" @@ -664,8 +663,8 @@ _Jv_RegisterLibForGc (const void *p __attribute__ ((__unused__))) { #ifdef HAVE_DLFCN_H Dl_info info; - - if (dladdr (p, &info) != 0) + + if (dladdr (const_cast<void *>(p), &info) != 0) { filename_node **node = find_file (info.dli_fname); if (! *node) |