From 00bd4e5799c39d018efd7cd20d70580f761ebb46 Mon Sep 17 00:00:00 2001 From: Rohit Vighne Date: Fri, 7 Aug 2026 15:22:16 -0400 Subject: [PATCH] musl compat: throw() -> __THROW on glibc, nothing otherwise --- include/crucible/process.h | 6 +++++- lib/process.cc | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/crucible/process.h b/include/crucible/process.h index 845ab277..b2ae817a 100644 --- a/include/crucible/process.h +++ b/include/crucible/process.h @@ -11,7 +11,11 @@ #include extern "C" { - pid_t gettid() throw(); + pid_t gettid() +#ifdef __THROW + __THROW +#endif + ; }; namespace crucible { diff --git a/lib/process.cc b/lib/process.cc index 808073ee..6ef4e8cc 100644 --- a/lib/process.cc +++ b/lib/process.cc @@ -13,7 +13,10 @@ extern "C" { pid_t __attribute__((weak)) - gettid() throw() + gettid() +#ifdef __THROW + __THROW +#endif { return syscall(SYS_gettid); }