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:
Kefu Chai 2015-10-22 18:04:29 +08:00
commit 8d5ef0ecb9

View File

@ -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>