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 | --- |
| 7 | src/common/linux/elf_core_dump.h | 1 + |
| 8 | 1 file changed, 1 insertion(+) |
| 9 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 10 | --- a/src/common/linux/elf_core_dump.h |
| 11 | +++ b/src/common/linux/elf_core_dump.h |
| 12 | @@ -33,10 +33,14 @@ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | #ifndef COMMON_LINUX_ELF_CORE_DUMP_H_ |
| 14 | #define COMMON_LINUX_ELF_CORE_DUMP_H_ |
| 15 | |
| 16 | +#include <config.h> |
| 17 | #include <elf.h> |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 18 | #include <limits.h> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | #include <link.h> |
| 20 | #include <stddef.h> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | +#ifdef HAVE_SYS_REG_H |
| 22 | +#include <sys/reg.h> |
| 23 | +#endif |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 24 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 25 | #include "common/memory_range.h" |
| 26 | |