From 6ee073234cc1361309716713bbbb773005bda85d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 5 Oct 2019 16:01:13 +0800 Subject: 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 --- src/test/libcephfs/test.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 #include +#ifndef ALLPERMS +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) +#endif + TEST(LibCephFS, OpenEmptyComponent) { pid_t mypid = getpid(); -- cgit v1.2.3