diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-08-04 06:29:58 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-08-04 06:29:58 +0000 |
commit | c7e3f3ab6efb928711c6861307317f91148e0eb5 (patch) | |
tree | 3f8cf3309723e121f474f141a41bb2c76fe809ef /llvm/lib/Support/Unix/Unix.h | |
parent | caf1149b8b7801efdd329cdd6e158d8c862e56a6 (diff) | |
download | bcm5719-llvm-c7e3f3ab6efb928711c6861307317f91148e0eb5.tar.gz bcm5719-llvm-c7e3f3ab6efb928711c6861307317f91148e0eb5.zip |
Remove the configure and cmake checks for sys/wait.h
If we don't have sys/wait.h and we're on a unix system there's no way
that several of the llvm tools work at all. This includes clang.
Just remove the configure and cmake checks entirely - we'll get a
build error instead of building something broken now.
llvm-svn: 243957
Diffstat (limited to 'llvm/lib/Support/Unix/Unix.h')
-rw-r--r-- | llvm/lib/Support/Unix/Unix.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/Support/Unix/Unix.h b/llvm/lib/Support/Unix/Unix.h index e16a226a8ea..871e612f6c1 100644 --- a/llvm/lib/Support/Unix/Unix.h +++ b/llvm/lib/Support/Unix/Unix.h @@ -29,6 +29,7 @@ #include <cstring> #include <string> #include <sys/types.h> +#include <sys/wait.h> #ifdef HAVE_UNISTD_H #include <unistd.h> @@ -43,22 +44,10 @@ #endif #include <time.h> -#ifdef HAVE_SYS_WAIT_H -# include <sys/wait.h> -#endif - #ifdef HAVE_DLFCN_H # include <dlfcn.h> #endif -#ifndef WEXITSTATUS -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif - -#ifndef WIFEXITED -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif - /// This function builds an error message into \p ErrMsg using the \p prefix /// string and the Unix error number given by \p errnum. If errnum is -1, the /// default then the value of errno is used. |