Index: chrome/browser/zygote_main_linux.cc |
=================================================================== |
--- chrome/browser/zygote_main_linux.cc (revision 25977) |
+++ chrome/browser/zygote_main_linux.cc (working copy) |
@@ -2,13 +2,21 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "build/build_config.h" |
+ |
#include <dlfcn.h> |
#include <unistd.h> |
+#if defined(OS_FREEBSD) |
+#include <signal.h> |
+#else |
#include <sys/epoll.h> |
+#endif |
#include <sys/types.h> |
#include <sys/socket.h> |
+#if !defined(OS_FREEBSD) |
#include <sys/signal.h> |
#include <sys/prctl.h> |
+#endif |
#include <sys/wait.h> |
#include "base/basictypes.h" |
@@ -407,6 +415,8 @@ |
SkiaFontConfigUseIPCImplementation(kMagicSandboxIPCDescriptor); |
+ // TODO(benl): Do something for FreeBSD... |
+#if !defined(OS_FREEBSD) |
// Previously, we required that the binary be non-readable. This causes the |
// kernel to mark the process as non-dumpable at startup. The thinking was |
// that, although we were putting the renderers into a PID namespace (with |
@@ -432,6 +442,7 @@ |
return false; |
} |
} |
+#endif |
} else { |
SkiaFontConfigUseDirectImplementation(); |
} |