diff options
| author | Khem Raj <raj.khem@gmail.com> | 2016-01-09 17:25:35 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-24 09:40:30 +0000 |
| commit | 86795ffdde4a9cd0b3e2662f8e0c83cb212ee3ee (patch) | |
| tree | d062257e25b590d6f2670e1d649d341aaece0b55 | |
| parent | ff8006f06f989ed6a36462cd27759d528f2c574c (diff) | |
| download | poky-86795ffdde4a9cd0b3e2662f8e0c83cb212ee3ee.tar.gz | |
kexec-tools: Define _GNU_SOURCE for getting loff_t definition
Fixes errors e.g.
vmcore-dmesg/vmcore-dmesg.c:370:32: error: unknown type name 'loff_t'
(From OE-Core rev: 93911daf0b492d16d02b2bd7ce93ae1eb6bdb5a4)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-vmcore-dmesg-Define-_GNU_SOURCE.patch | 31 | ||||
| -rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.11.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-vmcore-dmesg-Define-_GNU_SOURCE.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-vmcore-dmesg-Define-_GNU_SOURCE.patch new file mode 100644 index 0000000000..90c2f6e0ec --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-vmcore-dmesg-Define-_GNU_SOURCE.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From d811875a41b4628040abaada3da29b7b9592e757 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 9 Jan 2016 17:16:16 -0800 | ||
| 4 | Subject: [PATCH] vmcore-dmesg: Define _GNU_SOURCE | ||
| 5 | |||
| 6 | loff_t is guarded with _GNU_SOURCE on some C library implementations | ||
| 7 | e.g. musl since this type is not defined by POSIX. Define _GNU_SOURCE to | ||
| 8 | include this define, it should help compiling on musl while nothing | ||
| 9 | changes for glibc based systems since there _GNU_SOURCE is already | ||
| 10 | defined | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | Upstream-Status: Submitted | ||
| 15 | |||
| 16 | vmcore-dmesg/vmcore-dmesg.c | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c | ||
| 20 | index 0364636..a8f56df 100644 | ||
| 21 | --- a/vmcore-dmesg/vmcore-dmesg.c | ||
| 22 | +++ b/vmcore-dmesg/vmcore-dmesg.c | ||
| 23 | @@ -1,4 +1,5 @@ | ||
| 24 | #define _XOPEN_SOURCE 600 | ||
| 25 | +#define _GNU_SOURCE | ||
| 26 | #define _LARGEFILE_SOURCE 1 | ||
| 27 | #define _FILE_OFFSET_BITS 64 | ||
| 28 | #include <endian.h> | ||
| 29 | -- | ||
| 30 | 2.7.0 | ||
| 31 | |||
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.11.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.11.bb index 866441b531..8ca6f27d81 100644 --- a/meta/recipes-kernel/kexec/kexec-tools_2.0.11.bb +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.11.bb | |||
| @@ -7,6 +7,7 @@ SRC_URI += "file://kexec-tools-Refine-kdump-device_tree-sort.patch \ | |||
| 7 | file://kexec-x32.patch \ | 7 | file://kexec-x32.patch \ |
| 8 | file://0002-powerpc-change-the-memory-size-limit.patch \ | 8 | file://0002-powerpc-change-the-memory-size-limit.patch \ |
| 9 | file://0001-purgatory-Pass-r-directly-to-linker.patch \ | 9 | file://0001-purgatory-Pass-r-directly-to-linker.patch \ |
| 10 | file://0001-vmcore-dmesg-Define-_GNU_SOURCE.patch \ | ||
| 10 | " | 11 | " |
| 11 | 12 | ||
| 12 | SRC_URI[md5sum] = "86de066859f289048f1b286af6f03f78" | 13 | SRC_URI[md5sum] = "86de066859f289048f1b286af6f03f78" |
