| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 02a/11] xfsprogs: Add XATTR_LIST_MAX to OS X headers |
| From: | Jan Tulak <jtulak@xxxxxxxxxx> |
| Date: | Thu, 3 Sep 2015 12:33:09 +0200 |
| Cc: | hch@xxxxxxxxxxxxx, Jan Tulak <jtulak@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1440655340-27550-1-git-send-email-jtulak@xxxxxxxxxx> |
| References: | <1440655340-27550-1-git-send-email-jtulak@xxxxxxxxxx> |
OS X has no XATTR_LIST_MAX value. So add it to the platform header.
Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx>
---
include/darwin.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/darwin.h b/include/darwin.h
index b904898..4b7ba3a 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);
--
2.4.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] xfs: fix null pointer dereference when mapping is NULL, Colin King |
|---|---|
| Next by Date: | Re: [PATCH 10/11] xfsprogs: add dummy mntent for OS X, Dave Chinner |
| Previous by Thread: | [PATCH] xfs: fix null pointer dereference when mapping is NULL, Colin King |
| Next by Thread: | [PATCH 02b/11] xfsprogs: avoid dependency on Linux XATTR_SIZE_MAX, Jan Tulak |
| Indexes: | [Date] [Thread] [Top] [All Lists] |