aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/breakpad/breakpad/0001-include-sys-reg.h-to-get-__WORDSIZE-on-musl-libc.patch
blob: 3dc55cf1fc801131df261fcf2dd848541feea3ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 68580cb62f77117be3164c52abae68f75e8e59a1 Mon Sep 17 00:00:00 2001
From: Felix Janda <felix.janda@posteo.de>
Date: Sun, 1 Feb 2015 14:26:52 +0100
Subject: [PATCH 1/3] include <sys/reg.h> to get __WORDSIZE on musl libc

---
 src/common/linux/elf_core_dump.h | 1 +
 1 file changed, 1 insertion(+)

--- a/src/common/linux/elf_core_dump.h
+++ b/src/common/linux/elf_core_dump.h
@@ -33,10 +33,14 @@
 #ifndef COMMON_LINUX_ELF_CORE_DUMP_H_
 #define COMMON_LINUX_ELF_CORE_DUMP_H_
 
+#include <config.h>
 #include <elf.h>
 #include <limits.h>
 #include <link.h>
 #include <stddef.h>
+#ifdef HAVE_SYS_REG_H
+#include <sys/reg.h>
+#endif
 
 #include "common/memory_range.h"