Index: base/file_util_linux.cc |
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc |
index d737b971b794a9d44896b5b7544932f3180fd476..33edc90271e287ec602196607ab9a7d7ee0188b9 100644 |
--- a/base/file_util_linux.cc |
+++ b/base/file_util_linux.cc |
@@ -10,6 +10,18 @@ |
#include "base/files/file_path.h" |
+// Make sure some of the newer macros from magic.h are defined. |
+// TODO(mostynb@opera.com): remove this after 2014. |
+#ifndef BTRFS_SUPER_MAGIC |
+#define BTRFS_SUPER_MAGIC 0x9123683E |
+#endif |
+#ifndef HUGETLBFS_MAGIC |
+#define HUGETLBFS_MAGIC 0x958458f6 |
+#endif |
+#ifndef TMPFS_MAGIC |
+#define TMPFS_MAGIC 0x01021994 |
+#endif |
+ |
namespace file_util { |
bool GetFileSystemType(const base::FilePath& path, FileSystemType* type) { |