X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSystem%2FUnix%2FPath.cpp;h=99923335c5aab2a9f289a0775fdec0da30d65637;hb=af2f208e7c727f75ee279d63c6b722da0d75fced;hp=f1d6938e31f37f8e492bdd729ef8fb5056091aae;hpb=69a16161062ac8a6c98b36f079f5f24646e119d4;p=oota-llvm.git diff --git a/lib/System/Unix/Path.cpp b/lib/System/Unix/Path.cpp index f1d6938e31f..99923335c5a 100644 --- a/lib/System/Unix/Path.cpp +++ b/lib/System/Unix/Path.cpp @@ -18,11 +18,35 @@ #include "llvm/Config/alloca.h" #include "Unix.h" +#if HAVE_SYS_STAT_H #include +#endif +#if HAVE_FCNTL_H #include +#endif +#if HAVE_UTIME_H #include -#include +#endif +#if HAVE_TIME_H #include +#endif +#if HAVE_DIRENT_H +# include +# define NAMLEN(dirent) strlen((dirent)->d_name) +#else +# define dirent direct +# define NAMLEN(dirent) (dirent)->d_namlen +# if HAVE_SYS_NDIR_H +# include +# endif +# if HAVE_SYS_DIR_H +# include +# endif +# if HAVE_NDIR_H +# include +# endif +#endif + namespace llvm { using namespace sys;