kumquat-buildroot/package/makedumpfile/0001-PATCH-Define-PN_XNUM-if-missing.patch
Alexander Egorenkov 7422573b4f package/makedumpfile: bump to version 1.6.8
Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-12-01 23:32:54 +01:00

26 lines
596 B
Diff

From: Petr Tesarik <ptesarik@suse.com>
Subject: [PATCH] Define PN_XNUM if missing
Upstream: never, build fix for old distros
Older elfutils did not define this constant.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
---
elf_info.h | 4 ++++
1 file changed, 4 insertions(+)
--- a/elf_info.h
+++ b/elf_info.h
@@ -19,6 +19,10 @@
#include <elf.h>
#include <sys/types.h>
+#ifndef PN_XNUM
+#define PN_XNUM 0xffff
+#endif
+
#define KEXEC_CORE_NOTE_NAME "CORE"
#define KEXEC_CORE_NOTE_NAME_BYTES sizeof(KEXEC_CORE_NOTE_NAME)