From: Kefu Chai Date: Sat, 5 Oct 2019 08:01:13 +0000 (+0800) Subject: test: define ALLPERMS if not yet X-Git-Tag: v15.1.0~1306^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ee073234cc1361309716713bbbb773005bda85d;p=ceph-ci.git 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 --- 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();