summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-oe/recipes-devtools/breakpad/breakpad/0001-include-sys-reg.h-to-get-__WORDSIZE-on-musl-libc.patch
blob: 4583d601a874341ae77c7c540fb8fc2856ac4c4b (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
27
28
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(+)

Index: git/src/common/linux/elf_core_dump.h
===================================================================
--- git.orig/src/common/linux/elf_core_dump.h
+++ git/src/common/linux/elf_core_dump.h
@@ -33,10 +33,13 @@
 #ifndef COMMON_LINUX_ELF_CORE_DUMP_H_
 #define COMMON_LINUX_ELF_CORE_DUMP_H_
 
+#include <config.h>
 #include <elf.h>
 #include <link.h>
 #include <stddef.h>
-
+#ifdef HAVE_SYS_REG_H
+#include <sys/reg.h>
+#endif
 #include "common/memory_range.h"
 
 namespace google_breakpad {
OpenPOWER on IntegriCloud