summaryrefslogtreecommitdiff
path: root/user/cifs-utils/xattr_size_max.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/cifs-utils/xattr_size_max.patch')
-rw-r--r--user/cifs-utils/xattr_size_max.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/user/cifs-utils/xattr_size_max.patch b/user/cifs-utils/xattr_size_max.patch
new file mode 100644
index 000000000..041041a61
--- /dev/null
+++ b/user/cifs-utils/xattr_size_max.patch
@@ -0,0 +1,32 @@
+diff --git a/getcifsacl.c b/getcifsacl.c
+index f08cdea..5c46999 100644
+--- a/getcifsacl.c
++++ b/getcifsacl.c
+@@ -38,6 +38,11 @@
+ #include "cifsacl.h"
+ #include "idmap_plugin.h"
+
++#ifdef __linux__
++#include <linux/limits.h> /* for XATTR_SIZE_MAX */
++#include <endian.h> /* le16toh, le32toh etc */
++#endif
++
+ static void *plugin_handle;
+ static bool plugin_loaded;
+
+diff --git a/setcifsacl.c b/setcifsacl.c
+index ba34403..64e6eaa 100644
+--- a/setcifsacl.c
++++ b/setcifsacl.c
+@@ -39,6 +39,11 @@
+ #include "cifsacl.h"
+ #include "idmap_plugin.h"
+
++#ifdef __linux__
++#include <linux/limits.h> /* for XATTR_SIZE_MAX */
++#include <endian.h> /* le16toh, le32toh etc */
++#endif
++
+ enum setcifsacl_actions {
+ ActUnknown = -1,
+ ActDelete,