diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-06-05 00:27:38 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-06-05 00:27:38 +0000 |
| commit | 28461fa83cd707070eba1651772d5bbbcbe16b4e (patch) | |
| tree | ca1fe26dbfc1f7926e22827f930bd1dcb81de003 /llvm/include | |
| parent | c5e0be647cfc770379f1f6ceca06714a17cf67c4 (diff) | |
| download | bcm5719-llvm-28461fa83cd707070eba1651772d5bbbcbe16b4e.tar.gz bcm5719-llvm-28461fa83cd707070eba1651772d5bbbcbe16b4e.zip | |
Don't #include <unistd.h> directly, go through the config files
llvm-svn: 14038
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/Config/sys/resource.h | 12 | ||||
| -rw-r--r-- | llvm/include/Config/sys/time.h | 2 |
2 files changed, 4 insertions, 10 deletions
diff --git a/llvm/include/Config/sys/resource.h b/llvm/include/Config/sys/resource.h index 0b51941424a..1f4cc694b29 100644 --- a/llvm/include/Config/sys/resource.h +++ b/llvm/include/Config/sys/resource.h @@ -18,22 +18,16 @@ #include "Config/config.h" -#ifdef HAVE_SYS_RESOURCE_H +#if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER) /* * In LLVM, we use sys/resource.h to use getrusage() and maybe some other * stuff. Some man pages say that you also need sys/time.h and unistd.h. * So, to be paranoid, we will try to include all three if possible. */ -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#endif - +#include "Config/sys/time.h" #include <sys/resource.h> - -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif +#include "Config/unistd.h" #endif diff --git a/llvm/include/Config/sys/time.h b/llvm/include/Config/sys/time.h index 2764994717c..3e0ea1e8109 100644 --- a/llvm/include/Config/sys/time.h +++ b/llvm/include/Config/sys/time.h @@ -17,7 +17,7 @@ #include "Config/config.h" -#ifdef HAVE_SYS_TIME_H +#if defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) #include <sys/time.h> #endif |

