]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: define ALLPERMS if not yet
authorKefu Chai <kchai@redhat.com>
Sat, 5 Oct 2019 08:01:13 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Oct 2019 08:01:16 +0000 (16:01 +0800)
`ALLPERMS` is defined by glibc but not by musl, so define it if not yet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/libcephfs/test.cc

index 63eb5d91a704194a4d67a95f069edb9e4579523e..2eabc1bcf87ec682d91bfd6a6c52283707cb2321 100644 (file)
 #include <vector>
 #include <thread>
 
+#ifndef ALLPERMS
+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
 TEST(LibCephFS, OpenEmptyComponent) {
 
   pid_t mypid = getpid();