Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3870)

Unified Diff: base/files/file_util_posix.cc

Issue 2884353004: fuchsia: base_unittests (mostly) compiling (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/files/file_util_posix.cc
diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc
index 37c24e9c4eb9f81106cc9b983a25d2bdbfebaea2..bf8e7c528deeede8b8ad20d77ad619c6c4220c29 100644
--- a/base/files/file_util_posix.cc
+++ b/base/files/file_util_posix.cc
@@ -13,7 +13,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/errno.h>
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/stat.h>
@@ -56,6 +55,10 @@
#include <grp.h>
#endif
+#if !defined(OS_FUCHSIA)
+#include <sys/errno.h>
Nico 2017/05/17 15:52:53 Doesn't the warning just let you know that this sh
scottmg 2017/05/17 16:52:51 Ah, I assumed this was a Fuchsia-specific thing, b
+#endif
+
// We need to do this on AIX due to some inconsistencies in how AIX
// handles XOPEN_SOURCE and ALL_SOURCE.
#if defined(OS_AIX)

Powered by Google App Engine
This is Rietveld 408576698