diff options
author | Andrew Haley <aph@redhat.com> | 2006-04-25 11:54:15 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2006-04-25 11:54:15 +0000 |
commit | 523375356265744a9a04c0f7850690b12d1726a3 (patch) | |
tree | 66906c798bbc44ebda04e72f94dc0449df47af44 /libjava/boehm.cc | |
parent | 75d8b2d0146828137667471dd99e713bc3608342 (diff) | |
download | gcc-523375356265744a9a04c0f7850690b12d1726a3.zip gcc-523375356265744a9a04c0f7850690b12d1726a3.tar.gz gcc-523375356265744a9a04c0f7850690b12d1726a3.tar.bz2 |
natClassLoader.cc: Don't include link.h or dladdr.h.
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().
From-SVN: r113246
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 9ee633b..d939f41 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) |