[test-suite] r202388 - XCore target: add support to build MultiSource/Applications/minisat
Robert Lytton
robert at xmos.com
Thu Feb 27 04:45:30 PST 2014
Author: rlytton
Date: Thu Feb 27 06:45:30 2014
New Revision: 202388
URL: http://llvm.org/viewvc/llvm-project?rev=202388&view=rev
Log:
XCore target: add support to build MultiSource/Applications/minisat
Modified:
test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
Modified: test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/minisat/Main.cpp?rev=202388&r1=202387&r2=202388&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/minisat/Main.cpp (original)
+++ test-suite/trunk/MultiSource/Applications/minisat/Main.cpp Thu Feb 27 06:45:30 2014
@@ -27,7 +27,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR
#include "Solver.h"
/*************************************************************************************/
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__XS1B__)
#include <ctime>
static inline double cpuTime(void) {
@@ -44,6 +44,9 @@ static inline double cpuTime(void) {
return (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000; }
#endif
+#if defined(__XS1B__)
+#include <unistd.h>
+#endif
#if defined(__linux__)
static inline int memReadStat(int field)
More information about the llvm-commits
mailing list