diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 21:48:51 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 21:48:51 +0000 |
commit | 48f6a95841285ee0bf2d8c01568a5fc855dfb73b (patch) | |
tree | 4d154409be8293bc5478b4981baddcbad5966828 /base/file_util.h | |
parent | aa1101a8976d3823b1c99af37b7a17762ae44247 (diff) | |
download | chromium_src-48f6a95841285ee0bf2d8c01568a5fc855dfb73b.zip chromium_src-48f6a95841285ee0bf2d8c01568a5fc855dfb73b.tar.gz chromium_src-48f6a95841285ee0bf2d8c01568a5fc855dfb73b.tar.bz2 |
Reorder fts(3) includes per the man page, as fts.h uses sys/types.h. On linux, <sys/types.h> happened to be define before this anyway, but on other POSIX systems this is not the case.
Review URL: http://codereview.chromium.org/119110
Patch from Peter Valchev <pvalchev@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/file_util.h b/base/file_util.h index d622fb2..3686a18 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -13,9 +13,10 @@ #if defined(OS_WIN) #include <windows.h> #elif defined(OS_POSIX) -#include <fts.h> -#include <sys/stat.h> +// Keep the order as in fts(3): fts.h requires types defined in sys/types.h #include <sys/types.h> +#include <sys/stat.h> +#include <fts.h> #endif #include <stdio.h> |