diff options
Diffstat (limited to 'lib/Support/Unix/Watchdog.inc')
-rw-r--r-- | lib/Support/Unix/Watchdog.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Unix/Watchdog.inc b/lib/Support/Unix/Watchdog.inc index 5d89c0e51b..9133d01183 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 } } |