re PR libgcj/28226 (posix.cc:222: error: invalid conversion from 'const void*' to 'void*')

2006-07-04  Andreas Tobler  <a.tobler@schweiz.ch>

	PR libgcj/28226:
	* include/posix.h (_Jv_platform_dladdr): Remove const qualifier.
	* include/win32.h (_Jv_platform_dladdr): Likewise.
	* posix.cc (_Jv_platform_dladdr): Likewise.
	* win32.cc (_Jv_platform_dladdr): Likewise.

From-SVN: r115184
This commit is contained in:
Andreas Tobler 2006-07-04 22:21:40 +02:00 committed by Andreas Tobler
parent 706601d965
commit d25f0ebc38
5 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,11 @@
2006-07-04 Andreas Tobler <a.tobler@schweiz.ch>
PR libgcj/28226:
* include/posix.h (_Jv_platform_dladdr): Remove const qualifier.
* include/win32.h (_Jv_platform_dladdr): Likewise.
* posix.cc (_Jv_platform_dladdr): Likewise.
* win32.cc (_Jv_platform_dladdr): Likewise.
* testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar
instead of libgcj-*.jar.

View file

@ -199,6 +199,6 @@ struct _Jv_AddrInfo;
// Given an address, determine the executable or shared object that defines
// it and the nearest named symbol.
extern int _Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info);
extern int _Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info);
#endif /* __JV_POSIX_H__ */

View file

@ -180,6 +180,6 @@ struct _Jv_AddrInfo;
// Given an address, determine the executable or shared object that defines
// it and the nearest named symbol.
extern int _Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info);
extern int _Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info);
#endif /* __JV_WIN32_H__ */

View file

@ -213,7 +213,7 @@ _Jv_select (int n, fd_set *readfds, fd_set *writefds,
// defined symbol to that address. Returns 0 if no object defines this
// address.
int
_Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info)
_Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info)
{
int ret_val = 0;

View file

@ -463,7 +463,7 @@ _Jv_platform_close_on_exec (HANDLE h)
// defined symbol to that address. Returns 0 if no object defines this
// address.
int
_Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info)
_Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info)
{
// Since we do not have dladdr() on Windows, we use a trick involving
// VirtualQuery() to find the module (EXE or DLL) that contains a given