]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-java: build against older jni headers
authorGreg Farnum <greg@inktank.com>
Thu, 22 May 2014 04:41:23 +0000 (21:41 -0700)
committerGreg Farnum <greg@inktank.com>
Thu, 22 May 2014 22:37:32 +0000 (15:37 -0700)
commita898ee56e01f971c12c0f7bebc22e59f850f27c0
treee11643067dd08538e4ae93df3443e564f3f527fc
parent8a12a940817d957063c21ac71a6128f991801573
cephfs-java: build against older jni headers

Older versions of the JNI interface expected non-const parameters
to their memory move functions. It's unpleasant, but won't actually
change the memory in question, to do a cast_const in order to satisfy
those older headers. (And even if it *did* modify the memory, that
would be okay given our single user.)

Signed-off-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 4d4b77e5b6b923507ec4a0ad9d5c7018e4542a3c)
src/java/native/libcephfs_jni.cc