[PATCH] test-suite: XCore target: add support to build MultiSource/Applications/minisat
robert lytton
robert at xmos.com
Thu Feb 13 11:02:41 PST 2014
http://llvm-reviews.chandlerc.com/D2768
Files:
MultiSource/Applications/minisat/Main.cpp
Index: MultiSource/Applications/minisat/Main.cpp
===================================================================
--- MultiSource/Applications/minisat/Main.cpp
+++ MultiSource/Applications/minisat/Main.cpp
@@ -27,7 +27,7 @@
#include "Solver.h"
/*************************************************************************************/
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__XS1B__)
#include <ctime>
static inline double cpuTime(void) {
@@ -44,6 +44,9 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2768.1.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/3d29799a/attachment.bin>
More information about the llvm-commits
mailing list