diff options
author | Kefu Chai <kchai@redhat.com> | 2019-10-05 10:01:13 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2019-10-05 10:01:16 +0200 |
commit | 6ee073234cc1361309716713bbbb773005bda85d (patch) | |
tree | 769ae119d5324a483a3f19fa9083df406bedbddd /src | |
parent | Merge pull request #30614 from tchaikov/wip-no-more-osdmap-full (diff) | |
download | ceph-6ee073234cc1361309716713bbbb773005bda85d.tar.xz ceph-6ee073234cc1361309716713bbbb773005bda85d.zip |
test: define ALLPERMS if not yet
`ALLPERMS` is defined by glibc but not by musl, so define it if not yet.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/test/libcephfs/test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index 63eb5d91a70..2eabc1bcf87 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -36,6 +36,10 @@ #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(); |