summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch
deleted file mode 100644
index 4fc4b45fb1..0000000000
--- a/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From a33c262f828f803fffdad8e1f44d524dc9c75856 Mon Sep 17 00:00:00 2001
2From: Ben Hutchings <ben@decadent.org.uk>
3Date: Wed, 3 Aug 2022 01:10:01 +0200
4Subject: [PATCH] fcntl: Fix build failure for some architectures with Linux
5 5.19
6
7Starting from Linux 5.19, the kernel UAPI headers now only define
8__ARCH_FLOCK64_PAD if the architecture actually needs padding in
9struct flock64. Wrap its use with #ifdef,
10
11Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=bb2fde5ddbc18a2e7795ca4d24759230c2aae9d0]
12Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 usr/include/fcntl.h | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/usr/include/fcntl.h b/usr/include/fcntl.h
19index ed703a6..cb2e4e5 100644
20--- a/usr/include/fcntl.h
21+++ b/usr/include/fcntl.h
22@@ -33,7 +33,9 @@ struct flock {
23 __kernel_loff_t l_start;
24 __kernel_loff_t l_len;
25 __kernel_pid_t l_pid;
26+#ifdef __ARCH_FLOCK64_PAD
27 __ARCH_FLOCK64_PAD
28+#endif
29 };
30
31 #ifdef F_GETLK64
32--
332.37.2
34