ports/devel/breakpad/files/patch-src_common_memory.h
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
274 B
C

--- src/common/memory.h.orig 2017-07-12 17:53:15 UTC
+++ src/common/memory.h
@@ -42,7 +42,7 @@
#include <sanitizer/msan_interface.h>
#endif
-#ifdef __APPLE__
+#if __APPLE__ || __FreeBSD__
#define sys_mmap mmap
#define sys_munmap munmap
#define MAP_ANONYMOUS MAP_ANON