blob: 3dc55cf1fc801131df261fcf2dd848541feea3ce [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 68580cb62f77117be3164c52abae68f75e8e59a1 Mon Sep 17 00:00:00 2001
2From: Felix Janda <felix.janda@posteo.de>
3Date: Sun, 1 Feb 2015 14:26:52 +0100
4Subject: [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 Geissler32b11992021-03-31 13:37:05 -050010--- a/src/common/linux/elf_core_dump.h
11+++ b/src/common/linux/elf_core_dump.h
12@@ -33,10 +33,14 @@
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013 #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 Geissler32b11992021-03-31 13:37:05 -050018 #include <limits.h>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019 #include <link.h>
20 #include <stddef.h>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021+#ifdef HAVE_SYS_REG_H
22+#include <sys/reg.h>
23+#endif
Andrew Geissler32b11992021-03-31 13:37:05 -050024
Brad Bishopd7bf8c12018-02-25 22:55:05 -050025 #include "common/memory_range.h"
26