[patch] fix HPUX-PA build on posix.cc
Ranjit Mathew
rmathew@gmail.com
Sat Jul 1 01:12:00 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andreas Tobler wrote:
>
> this one fixes a build error on HPUX-PA.
[...]
> Dl_info addr_info;
> - ret_val = dladdr (addr, &addr_info);
> + ret_val = dladdr (const_cast<void *>(addr), &addr_info);
I am sorry for causing this build error. The reason I used
const was that the address parameter was not supposed to
to be modified by the callee. Looking at /usr/include/dlfcn.h
on my Linux box it also seemed palatable to the dladdr()
function so I went ahead with it.
By the way, we've had discussions on the utility of using
const qualifiers in C on the GCC list recently:
http://gcc.gnu.org/ml/gcc/2006-06/msg00870.html
Thanks,
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://rmathew.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEpcwwYb1hx2wRS48RAqIEAJwPuongckFipHNSTU0bqL6tXUXlIACgl/fm
voZxoycjiX2Mt+ZP8aSeApQ=
=l8ZL
-----END PGP SIGNATURE-----
More information about the Java-patches
mailing list