summaryrefslogtreecommitdiffstats
path: root/src/java/native
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-08-12 16:42:47 +0200
committerKefu Chai <kchai@redhat.com>2021-08-13 07:26:17 +0200
commitb11c2059506301a45da121e8a2bb8247d4aab173 (patch)
tree7a0bd8e821d3f9061c1e54898a1b103d28e894ba /src/java/native
parenttools/cephfs: build without "using namespace std" (diff)
downloadceph-b11c2059506301a45da121e8a2bb8247d4aab173.tar.xz
ceph-b11c2059506301a45da121e8a2bb8247d4aab173.zip
java: build without "using namespace std"
* add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/java/native')
-rw-r--r--src/java/native/libcephfs_jni.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/native/libcephfs_jni.cc b/src/java/native/libcephfs_jni.cc
index 74ef8dcdd86..cdb807e5a65 100644
--- a/src/java/native/libcephfs_jni.cc
+++ b/src/java/native/libcephfs_jni.cc
@@ -96,6 +96,8 @@
#define JAVA_LOCK_NB 4
#define JAVA_LOCK_UN 8
+using namespace std;
+
/* Map JAVA_O_* open flags to values in libc */
static inline int fixup_open_flags(jint jflags)
{