ports/devel/breakpad/files/patch-src_common_dwarf_elf__reader.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

11 lines
323 B
C++

--- src/common/dwarf/elf_reader.cc.orig 2017-07-12 17:53:15 UTC
+++ src/common/dwarf/elf_reader.cc
@@ -56,7 +56,7 @@
#endif
// Map Linux macros to their Apple equivalents.
-#if __APPLE__
+#if __APPLE__ || __FreeBSD__
#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
#endif // __LITTLE_ENDIAN