From: Rohit Vighne Date: Fri, 7 Aug 2026 19:22:16 +0000 (-0400) Subject: musl compat: throw() -> __THROW on glibc, nothing otherwise X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00bd4e5799c39d018efd7cd20d70580f761ebb46;p=bees musl compat: throw() -> __THROW on glibc, nothing otherwise --- 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); }