Properly inherit the environment on darwin where environ is not available for shared...
[oota-llvm.git] / lib / System / Unix / Alarm.inc
index 853fcf5036581f0f421d6848846d2d61a32ee415..fb42b6c65da106d29a995e718938f40b7e03a1ff 100644 (file)
@@ -1,4 +1,4 @@
-//===-- Alarm.inc - Implement Unix Alarm Support --------------------------===//
+//===-- Alarm.inc - Implement Unix Alarm Support ----------------*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -20,11 +20,11 @@ using namespace llvm;
 /// user presses CTRL-C.
 static volatile bool AlarmCancelled = false;
 
-/// AlarmTriggered - This flag is set by the SIGALRM signal handler if the 
+/// AlarmTriggered - This flag is set by the SIGALRM signal handler if the
 /// alarm was triggered.
 static volatile bool AlarmTriggered = false;
 
-/// NestedSOI - Sanity check.  Alarms cannot be nested or run in parallel.  
+/// NestedSOI - Sanity check.  Alarms cannot be nested or run in parallel.
 /// This ensures that they never do.
 static bool NestedSOI = false;
 
@@ -66,3 +66,7 @@ int sys::AlarmStatus() {
     return 1;
   return 0;
 }
+
+void sys::Sleep(unsigned n) {
+  ::sleep(n);
+}