summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-09-13 07:04:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-17 08:41:44 +0100
commitdd29a499a15f4bd043115f53795108ae5eb64240 (patch)
treed8bd8517775fb602122ea60fd09559aa0ba850e6
parentb759a65e3f6cf419db34e9bff1712c6cdcc32608 (diff)
downloadpoky-dd29a499a15f4bd043115f53795108ae5eb64240.tar.gz
musl: Add MAX_HANDLE_SZ
(From OE-Core rev: d24bafa872cd1915ca23468bb37be98518347e02) (From OE-Core rev: a5b0265e83f3c5a222c1b08bc853bec40e5a5148) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch29
-rw-r--r--meta/recipes-core/musl/musl_git.bb1
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch b/meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch
new file mode 100644
index 0000000000..b1217723a3
--- /dev/null
+++ b/meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch
@@ -0,0 +1,29 @@
1From e2e723cfe96ce6ed6558ed7e8fbb44b2283297da Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Sep 2018 06:57:28 -0700
4Subject: [PATCH] Define MAX_HANDLE_SZ
5
6MAX_HANDLE_SZ is described in name_to_handle_at() to contain maximum
7expected size for a file handle
8
9Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2018/09/13/16]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 include/fcntl.h | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/include/fcntl.h b/include/fcntl.h
16index 5c3defcb..6a8b6d49 100644
17--- a/include/fcntl.h
18+++ b/include/fcntl.h
19@@ -166,6 +166,7 @@ struct f_owner_ex {
20 };
21 #define FALLOC_FL_KEEP_SIZE 1
22 #define FALLOC_FL_PUNCH_HOLE 2
23+#define MAX_HANDLE_SZ 128
24 #define SYNC_FILE_RANGE_WAIT_BEFORE 1
25 #define SYNC_FILE_RANGE_WRITE 2
26 #define SYNC_FILE_RANGE_WAIT_AFTER 4
27--
282.19.0
29
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index f6edf7de61..be31718e3a 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -12,6 +12,7 @@ PV = "1.1.20+git${SRCPV}"
12SRC_URI = "git://git.musl-libc.org/musl \ 12SRC_URI = "git://git.musl-libc.org/musl \
13 file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ 13 file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
14 file://0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch \ 14 file://0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch \
15 file://0001-Define-MAX_HANDLE_SZ.patch \
15 " 16 "
16 17
17S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"