openbsd-ports/www/firefox35/patches/patch-js_src_jsgc_cpp
martynas 17e560f7ba - mman needs types
- enable jit.  currently on i386, arm, sparc
tested by naddy@
javascript performance more than 2x faster, according to sunspider
benchmark
2009-07-20 23:41:34 +00:00

12 lines
373 B
Plaintext

$OpenBSD: patch-js_src_jsgc_cpp,v 1.1 2009/07/20 23:41:34 martynas Exp $
--- js/src/jsgc.cpp.orig Wed Jul 15 18:34:51 2009
+++ js/src/jsgc.cpp Tue Jul 21 02:35:16 2009
@@ -118,6 +118,7 @@ extern "C" {
# ifndef JS_GC_USE_MMAP
# define JS_GC_USE_MMAP 1
# endif
+# include <sys/types.h>
# include <sys/mman.h>
/* On Mac OS X MAP_ANONYMOUS is not defined. */