diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-07 15:52:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-07 15:52:27 +0000 |
commit | 29269d03af6dc3feb69d0230831a059f39c03700 (patch) | |
tree | 9076b00f0f2ef7f978e0d3516c3487b6655176ee /lib | |
parent | ce5172098d5eaae22244c925b608fe62a23baaf2 (diff) | |
download | external_llvm-29269d03af6dc3feb69d0230831a059f39c03700.zip external_llvm-29269d03af6dc3feb69d0230831a059f39c03700.tar.gz external_llvm-29269d03af6dc3feb69d0230831a059f39c03700.tar.bz2 |
add some triple for minix, patch by Kees van Reeuwijk from PR7582
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Triple.cpp | 5 | ||||
-rw-r--r-- | lib/Support/raw_ostream.cpp | 2 | ||||
-rw-r--r-- | lib/System/Unix/Program.inc | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 9796ca5..6a70449 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -104,6 +104,7 @@ const char *Triple::getOSTypeName(OSType Kind) { case Solaris: return "solaris"; case Win32: return "win32"; case Haiku: return "haiku"; + case Minix: return "minix"; } return "<invalid>"; @@ -326,7 +327,9 @@ void Triple::Parse() const { else if (OSName.startswith("win32")) OS = Win32; else if (OSName.startswith("haiku")) - OS = Haiku; + OS = Haiku; + else if (OSName.startswith("minix")) + OS = Minix; else OS = UnknownOS; diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index bb72dfb..8054ae6 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -481,7 +481,7 @@ uint64_t raw_fd_ostream::seek(uint64_t off) { } size_t raw_fd_ostream::preferred_buffer_size() const { -#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_MINIX) +#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(__minix) // Windows and Minix have no st_blksize. assert(FD >= 0 && "File not yet open!"); struct stat statbuf; diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 358415f..67018de 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -310,7 +310,7 @@ Program::Wait(unsigned secondsToWait, // fact of having a handler at all causes the wait below to return with EINTR, // unlike if we used SIG_IGN. if (secondsToWait) { -#ifndef __HAIKU__ +#if !defined(__HAIKU__) && !defined(__minix) Act.sa_sigaction = 0; #endif Act.sa_handler = TimeOutHandler; |