Index: build/all.gyp --- build/all.gyp.orig 2014-09-12 02:05:16.000000000 +0200 +++ build/all.gyp 2015-01-18 10:54:55.806587272 +0100 @@ -8,13 +8,7 @@ 'target_name': 'All', 'type': 'none', 'dependencies': [ - '../samples/samples.gyp:*', - '../src/base/base.gyp:base-unittests', - '../src/compiler/compiler.gyp:compiler-unittests', - '../src/d8.gyp:d8', - '../src/heap/heap.gyp:heap-unittests', - '../src/libplatform/libplatform.gyp:libplatform-unittests', - '../test/cctest/cctest.gyp:*', + '../src/d8.gyp:d8' ], 'conditions': [ ['component!="shared_library"', { Index: src/base/platform/platform-freebsd.cc --- src/base/platform/platform-freebsd.cc.orig 2014-09-12 02:05:16.000000000 +0200 +++ src/base/platform/platform-freebsd.cc 2015-01-18 11:32:28.565840543 +0100 @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -141,7 +142,7 @@ if (bytes_read < 8) break; unsigned end = StringToLong(addr_buffer); char buffer[MAP_LENGTH]; - int bytes_read = -1; + bytes_read = -1; do { bytes_read++; if (bytes_read >= MAP_LENGTH - 1) Index: src/base/platform/platform-posix.cc --- src/base/platform/platform-posix.cc.orig 2014-09-12 02:05:16.000000000 +0200 +++ src/base/platform/platform-posix.cc 2015-01-18 11:32:28.586094584 +0100 @@ -25,6 +25,9 @@ defined(__NetBSD__) || defined(__OpenBSD__) #include // NOLINT, for sysctl #endif +#if defined(__FreeBSD__) +#include +#endif #undef MAP_TYPE @@ -35,6 +38,7 @@ #include #include +#include #include "src/base/lazy-instance.h" #include "src/base/macros.h" Index: tools/gyp/v8.gyp --- tools/gyp/v8.gyp.orig 2014-09-12 02:05:16.000000000 +0200 +++ tools/gyp/v8.gyp 2015-01-18 10:54:55.806587272 +0100 @@ -327,6 +327,9 @@ '../..', ], 'sources': [ ### gcmole(all) ### + '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', + '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', + '../../src/snapshot-empty.cc', '../../src/accessors.cc', '../../src/accessors.h', '../../src/allocation.cc',