]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/uclibc/0001-aarch64-sys-ucontext.h-include-bits-sigcontext.h.patch
package/uclibc: Fix ffmpeg build on aarch64
[coffee/buildroot.git] / package / uclibc / 0001-aarch64-sys-ucontext.h-include-bits-sigcontext.h.patch
1 From 1c27982bb8a007bb1a6a29db8e6efb1f40975879 Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Sun, 28 Jan 2018 13:59:30 +0100
4 Subject: [PATCH 1/1] aarch64/sys/ucontext.h: include bits/sigcontext.h
5
6 Fixes a buildroot build error with ffmpeg
7
8 In file included from /home/bernd/buildroot/output/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/signal.h:329:0,
9                  from fftools/ffmpeg.h:26,
10                  from fftools/ffmpeg_opt.c:23:
11 /home/bernd/buildroot/output/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/sys/ucontext.h:52:16:
12  error: field 'uc_mcontext' has incomplete type
13      mcontext_t uc_mcontext;
14                 ^~~~~~~~~~~
15
16 using this defconfig:
17
18 BR2_aarch64=y
19 BR2_PACKAGE_FFMPEG=y
20
21 sys/ucontext.h for other archs already include bits/sigcontext.h,
22 on aarch64 this is needed as well.
23
24 Patch sent upstream:
25 https://mailman.uclibc-ng.org/pipermail/devel/2018-January/001622.html
26
27 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
28 ---
29  libc/sysdeps/linux/aarch64/sys/ucontext.h | 4 ++++
30  1 file changed, 4 insertions(+)
31
32 diff --git a/libc/sysdeps/linux/aarch64/sys/ucontext.h b/libc/sysdeps/linux/aarch64/sys/ucontext.h
33 index d17458896..dc7303b54 100644
34 --- a/libc/sysdeps/linux/aarch64/sys/ucontext.h
35 +++ b/libc/sysdeps/linux/aarch64/sys/ucontext.h
36 @@ -26,6 +26,10 @@
37  
38  #include <sys/procfs.h>
39  
40 +/* We need the signal context definitions even if they are not used
41 +   included in <signal.h>.  */
42 +#include <bits/sigcontext.h>
43 +
44  typedef elf_greg_t greg_t;
45  
46  /* Container for all general registers.  */
47 -- 
48 2.11.0
49