Skip to content

Commit 4722b24

Browse files
authored
disable watchdog on linux alpine (#587)
1 parent 85d9394 commit 4722b24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/node/prof/watchdog.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "compat.h"
2121
#include "compat-inl.h"
2222

23-
#if defined(__linux__) && (defined(__i386) || defined(__x86_64__))
23+
#if defined(__linux__) && (defined(__i386) || defined(__x86_64__)) || defined(sigev_notify_thread_id)
2424

2525
#include "util.h"
2626

@@ -307,7 +307,7 @@ void Initialize(v8::Isolate* isolate, v8::Local<v8::Object> binding) {
307307

308308
} // namespace watchdog
309309

310-
#else // defined(__linux__) && (defined(__i386) || defined(__x86_64__))
310+
#else // defined(__linux__) && (defined(__i386) || defined(__x86_64__)) && defined(sigev_notify_thread_id)
311311

312312
namespace watchdog {
313313

@@ -329,6 +329,6 @@ const v8::CpuProfile* StopCpuProfiling(v8::Isolate* isolate) {
329329

330330
} // namespace watchdog
331331

332-
#endif // defined(__linux__) && (defined(__i386) || defined(__x86_64__))
332+
#endif // defined(__linux__) && (defined(__i386) || defined(__x86_64__)) && defined(sigev_notify_thread_id)
333333

334334
#endif // AGENT_SRC_WATCHDOG_H_

0 commit comments

Comments
 (0)