]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
platform: Add XATTR_LIST_MAX to OS X headers
authorJan Tulak <jtulak@redhat.com>
Tue, 13 Oct 2015 23:57:52 +0000 (10:57 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:57:52 +0000 (10:57 +1100)
OS X has no XATTR_LIST_MAX value. So add it to the platform header.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/darwin.h

index b90489813d7d197fd7172bd16f64e5e0106db3f7..4b7ba3a7303bf706675805a1a3e5281b8a88c51e 100644 (file)
 # 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);