mirror of
https://github.com/ceph/ceph
synced 2024-12-19 18:02:46 +00:00
Merge pull request #6343 from dx9/wip-12406-xattr
os/chain_xattr: On linux use linux/limits.h for XATTR_NAME_MAX. Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
8d5ef0ecb9
@ -9,7 +9,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <limits.h>
|
||||
#include <linux/limits.h>
|
||||
#define CHAIN_XATTR_MAX_NAME_LEN ((XATTR_NAME_MAX + 1) / 2)
|
||||
#elif defined(__APPLE__)
|
||||
#include <sys/xattr.h>
|
||||
|
Loading…
Reference in New Issue
Block a user