| Index: lib/Support/Unix/Host.inc
|
| diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
|
| index fcb3638d1cee65cec112697e4bf64627a1e46f76..2ab601f21c7005d54d9c710c39cfb9b5e76f9912 100644
|
| --- a/lib/Support/Unix/Host.inc
|
| +++ b/lib/Support/Unix/Host.inc
|
| @@ -19,19 +19,25 @@
|
| #include "llvm/Config/config.h"
|
| #include "llvm/ADT/StringRef.h"
|
| #include "Unix.h"
|
| +#if !defined(__native_client__)
|
| #include <sys/utsname.h>
|
| +#endif // (__native_client__)
|
| #include <cctype>
|
| #include <string>
|
|
|
| using namespace llvm;
|
|
|
| static std::string getOSVersion() {
|
| +#if !defined(__native_client__)
|
| struct utsname info;
|
|
|
| if (uname(&info))
|
| return "";
|
|
|
| return info.release;
|
| +#else // (__native_client__)
|
| + return "";
|
| +#endif // (__native_client__)
|
| }
|
|
|
| std::string sys::getDefaultTargetTriple() {
|
|
|