Skip to content

Commit

Permalink
Switch uses of <dirent.h> to <folly/portability/Dirent.h>
Browse files Browse the repository at this point in the history
Summary: Diff #5 of 14.

Reviewed By: mzlee

Differential Revision: D3186885

fbshipit-source-id: 1947656137cad62a019cdf687cff9913bcecde2a
  • Loading branch information
Orvid authored and Hhvm Bot committed May 30, 2016
1 parent 0b82fda commit 88c0df9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hphp/compiler/package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <fstream>
#include <map>
#include <memory>
#include <set>
#include <utility>
#include <vector>
#include <folly/String.h>
#include <folly/portability/Dirent.h>
#include "hphp/compiler/analysis/analysis_result.h"
#include "hphp/compiler/parser/parser.h"
#include "hphp/compiler/analysis/symbol_table.h"
Expand Down
3 changes: 2 additions & 1 deletion hphp/runtime/base/directory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
#include "hphp/runtime/base/type-array.h"
#include "hphp/runtime/base/type-string.h"

#include <dirent.h>
#include <vector>

#include <folly/portability/Dirent.h>

namespace HPHP {
///////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion hphp/runtime/base/file-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#include <boost/filesystem.hpp>

#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <libgen.h>

#include <folly/String.h>
#include <folly/portability/Dirent.h>

#include "hphp/runtime/base/runtime-error.h"
#include "hphp/util/lock.h"
Expand Down
2 changes: 1 addition & 1 deletion hphp/runtime/ext/session/ext_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <vector>

#include <folly/String.h>
#include <folly/portability/Dirent.h>
#include <folly/portability/SysFile.h>
#include <folly/portability/SysTime.h>

Expand Down
2 changes: 1 addition & 1 deletion hphp/runtime/ext/std/ext_std_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
#include "hphp/util/process.h"

#include <folly/String.h>
#include <folly/portability/Dirent.h>
#include <folly/portability/SysFile.h>

#include <dirent.h>
#include <glob.h>
#include <sys/types.h>
#if defined(__FreeBSD__) || defined(__APPLE__)
Expand Down
5 changes: 2 additions & 3 deletions hphp/runtime/ext_zend_compat/php-src/main/php_reentrancy.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@

#include "php.h"

#include <folly/portability/Dirent.h>

#include <sys/types.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
#include <time.h>

/* currently, PHP does not check for these functions, but assumes
Expand Down

0 comments on commit 88c0df9

Please sign in to comment.