| 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
|
| }
|
| }
|
|
|