opnsense-ports/devel/breakpad/files/patch-src_common_linux_elfutils.cc
Franco Fichtner 6a3f29ba12 */*: sync with upstream
Taken from: HardenedBSD
2017-08-25 06:06:29 +02:00

15 lines
400 B
C++

--- 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 {