Bug 648735 - Build fails without sys/types.h inclusion; r=cjones
authorLandry Breuil <landry@openbsd.org>
Tue, 20 Sep 2011 13:23:03 +0100
changeset 77191 3b19bf3e0b696d4e15dcab9d23fca422a53f40b1
parent 77190 f44151e039f6fb5ee213feb215ec49e7f7a3f8ed
child 77192 ea33ddde6adee9d4f0e205eadafc130e5c52a375
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerscjones
bugs648735
milestone9.0a1
Bug 648735 - Build fails without sys/types.h inclusion; r=cjones /usr/include/fts.h:42: error: 'dev_t' does not name a type /usr/include/fts.h:45: error: 'size_t' does not name a type /usr/include/fts.h:73: error: 'size_t' does not name a type /usr/include/fts.h:74: error: 'size_t' does not name a type /usr/include/fts.h:76: error: 'ino_t' does not name a type /usr/include/fts.h:77: error: 'dev_t' does not name a type /usr/include/fts.h:78: error: 'nlink_t' does not name a type
ipc/chromium/src/base/file_util.h
--- a/ipc/chromium/src/base/file_util.h
+++ b/ipc/chromium/src/base/file_util.h
@@ -10,16 +10,17 @@
 
 #include "build/build_config.h"
 
 #if defined(OS_WIN)
 #include <windows.h>
 #elif defined(ANDROID)
 #include <sys/stat.h>
 #elif defined(OS_POSIX) 
+#include <sys/types.h>
 #include <fts.h>
 #include <sys/stat.h>
 #endif
 
 #include <stdio.h>
 
 #include <stack>
 #include <string>