ports/devel/breakpad/files/patch-src_common_linux_elfutils.cc
Mahdi Mokhtari 3941ebc756 devel/breakpad: Add port to the tree
Breakpad is a set of client and server components which implement
a crash-reporting system.
This is YET ANOTHER STEP to build Electron.io for FreeBSD.

PR:		221320
Reported by:	Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
Reviewed by:	cpm, lifanov, mat (mentor), mmokhi, ultima
Approved by:	cpm, lifanov, mat (mentor), mmokhi, ultima
Differential Revision:	https://reviews.freebsd.org/D11773
2017-08-24 15:04:51 +00: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 {