Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: lib/Support/Unix/Watchdog.inc

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Support/Unix/TimeValue.inc ('k') | lib/Target/ARM/ARM.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Support/Unix/Watchdog.inc
diff --git a/lib/Support/Unix/Watchdog.inc b/lib/Support/Unix/Watchdog.inc
index 5d89c0e51b118cab04c2dbe8b90ce9838d14808e..9133d01183a1afd1cb53727a20c9cc81374543a1 100644
--- a/lib/Support/Unix/Watchdog.inc
+++ b/lib/Support/Unix/Watchdog.inc
@@ -19,13 +19,17 @@ namespace llvm {
namespace sys {
Watchdog::Watchdog(unsigned int seconds) {
#ifdef HAVE_UNISTD_H
+ #ifndef __native_client__
alarm(seconds);
+ #endif // __native_client__
#endif
}
Watchdog::~Watchdog() {
#ifdef HAVE_UNISTD_H
+ #ifndef __native_client__
alarm(0);
+ #endif //__native_client__
#endif
}
}
« no previous file with comments | « lib/Support/Unix/TimeValue.inc ('k') | lib/Target/ARM/ARM.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698