From: Jan Tulak Date: Tue, 13 Oct 2015 23:57:52 +0000 (+1100) Subject: platform: Add XATTR_LIST_MAX to OS X headers X-Git-Tag: v4.3.0-rc1~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6e8a131315d842264aa96fbb29c85a87e05a07c;p=thirdparty%2Fxfsprogs-dev.git platform: Add XATTR_LIST_MAX to OS X headers OS X has no XATTR_LIST_MAX value. So add it to the platform header. Signed-off-by: Jan Tulak Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/include/darwin.h b/include/darwin.h index b90489813..4b7ba3a73 100644 --- a/include/darwin.h +++ b/include/darwin.h @@ -39,6 +39,11 @@ # ifndef SYS_fsctl # define SYS_fsctl 242 # endif + +#ifndef XATTR_LIST_MAX +#define XATTR_LIST_MAX 65536 +#endif + static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p) { return syscall(SYS_fsctl, path, cmd, p, 0);