summaryrefslogtreecommitdiff
path: root/devel/breakpad/files/patch-src_common_linux_elfutils.cc
blob: a1a3d7bfe6e176e804ebd7412108efb65353ee29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/common/linux/elfutils.cc.orig	2017-07-12 17:53:15 UTC
+++ src/common/linux/elfutils.cc
@@ -35,6 +35,12 @@
 #include "common/linux/linux_libc_support.h"
 #include "common/linux/elfutils-inl.h"
 
+#ifndef ElfW
+#define ElfW(type)	_ElfW (Elf, __ELF_WORD_SIZE, type)
+#define _ElfW(e,w,t)	_ElfW_1 (e, w, _##t)
+#define _ElfW_1(e,w,t)	e##w##t
+#endif
+
 namespace google_breakpad {
 
 namespace {