Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 68580cb62f77117be3164c52abae68f75e8e59a1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Felix Janda <felix.janda@posteo.de> |
| 3 | Date: Sun, 1 Feb 2015 14:26:52 +0100 |
| 4 | Subject: [PATCH 1/3] include <sys/reg.h> to get __WORDSIZE on musl libc |
| 5 | |
| 6 | --- |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame^] | 7 | Upstream-Status: Pending |
| 8 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | src/common/linux/elf_core_dump.h | 1 + |
| 10 | 1 file changed, 1 insertion(+) |
| 11 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 12 | --- a/src/common/linux/elf_core_dump.h |
| 13 | +++ b/src/common/linux/elf_core_dump.h |
| 14 | @@ -33,10 +33,14 @@ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | #ifndef COMMON_LINUX_ELF_CORE_DUMP_H_ |
| 16 | #define COMMON_LINUX_ELF_CORE_DUMP_H_ |
| 17 | |
| 18 | +#include <config.h> |
| 19 | #include <elf.h> |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 20 | #include <limits.h> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | #include <link.h> |
| 22 | #include <stddef.h> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | +#ifdef HAVE_SYS_REG_H |
| 24 | +#include <sys/reg.h> |
| 25 | +#endif |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 26 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | #include "common/memory_range.h" |
| 28 | |