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