--- base/memory/shared_memory.h.orig	2011-04-01 21:54:26.066717848 +0300
+++ base/memory/shared_memory.h	2011-04-01 21:55:14.292717813 +0300
@@ -10,6 +10,7 @@
 
 #if defined(OS_POSIX)
 #include <sys/types.h>
+#include <stdio.h>
 #include <semaphore.h>
 #include "base/file_descriptor_posix.h"
 #endif
--- third_party/libjingle/source/talk/base/stream.h.orig	2011-04-01 22:16:30.129717654 +0300
+++ third_party/libjingle/source/talk/base/stream.h	2011-04-01 22:16:48.245715495 +0300
@@ -28,6 +28,7 @@
 #ifndef TALK_BASE_STREAM_H__
 #define TALK_BASE_STREAM_H__
 
+#include <stdio.h>
 #include "talk/base/basictypes.h"
 #include "talk/base/criticalsection.h"
 #include "talk/base/logging.h"
--- media/filters/file_data_source.h.orig	2011-09-14 10:01:06.000000000 +0200
+++ media/filters/file_data_source.h	2011-09-26 19:08:17.000000000 +0200
@@ -5,6 +5,7 @@
 #ifndef MEDIA_FILTERS_FILE_DATA_SOURCE_H_
 #define MEDIA_FILTERS_FILE_DATA_SOURCE_H_
 
+#include <cstdio>
 #include <string>
 
 #include "base/gtest_prod_util.h"
--- third_party/libjingle/source/talk/base/network.h.orig	2013-05-26 21:44:12.257312749 +0200
+++ third_party/libjingle/source/talk/base/network.h	2013-05-26 21:45:08.869297313 +0200
@@ -38,6 +38,10 @@
 #include "talk/base/messagehandler.h"
 #include "talk/base/sigslot.h"
 
+#if defined(OS_FREEBSD)
+#include <sys/types.h>
+#endif
+
 #if defined(POSIX)
 struct ifaddrs;
 #endif  // defined(POSIX)
--- base/sys_info_freebsd.cc.orig	2013-05-17 22:44:42.000000000 +0200
+++ base/sys_info_freebsd.cc	2013-05-26 22:57:45.885322785 +0200
@@ -4,6 +4,7 @@
 
 #include "base/sys_info.h"
 
+#include <sys/types.h>
 #include <sys/sysctl.h>
 
 #include "base/logging.h"
