[llvm-commits] CVS: reopt/lib/LightWtProfiling/scheduler.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Jun 25 01:09:08 PDT 2004


Changes in directory reopt/lib/LightWtProfiling:

scheduler.cpp updated: 1.8 -> 1.9

---
Log message:

If we don't have itimers on this platform, provide the prototypes for them
inline.  A configure check should probably be provided for this someday.


---
Diffs of the changes:  (+11 -0)

Index: reopt/lib/LightWtProfiling/scheduler.cpp
diff -u reopt/lib/LightWtProfiling/scheduler.cpp:1.8 reopt/lib/LightWtProfiling/scheduler.cpp:1.9
--- reopt/lib/LightWtProfiling/scheduler.cpp:1.8	Wed Jan 14 17:02:22 2004
+++ reopt/lib/LightWtProfiling/scheduler.cpp	Fri Jun 25 01:07:51 2004
@@ -19,6 +19,17 @@
 #include <csignal>
 #include <iostream>
 
+#if !(defined(__svr4__) && defined(__sparc__))
+// We'll just pop enough stuff in here so that scheduler.cpp compiles.
+struct itimerspec { struct timespec it_value; struct timespec it_interval; };
+enum { CLOCK_REALTIME };
+typedef int timer_t; 
+int timer_create(int clock_id, struct sigevent *evp, timer_t *timerid);
+int timer_settime(timer_t timerid, int flags, const struct itimerspec *value,
+                  struct itimerspec *ovalue);
+int timer_gettime(timer_t timerid, struct itimerspec *value);
+#endif
+
 namespace llvm {
 
 // A qentry (queue entry) is a (cycle, addr) tuple.





More information about the llvm-commits mailing list