[llvm] [SystemZ][z/OS] z/OS does not support nanosleep, use usleep instead (PR #109823)

Zibi Sarbinowski via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 10:54:44 PDT 2024


================
@@ -27,6 +27,10 @@ void SleepMS() {
   struct timespec Interval;
   Interval.tv_sec = 0;
   Interval.tv_nsec = 1000000;
+#if defined(__MVS__)
+  long Microseconds = (Interval.tv_nsec + 999) / 1000;
+  usleep(Microseconds);
+#else
----------------
zibi2 wrote:

However, we need the original change to use the upstream compiler.

https://github.com/llvm/llvm-project/pull/109823


More information about the llvm-commits mailing list