]> git.hungrycats.org Git - bees/commitdiff
musl compat: throw() -> __THROW on glibc, nothing otherwise
authorRohit Vighne <rohit.vighne@gmail.com>
Fri, 7 Aug 2026 19:22:16 +0000 (15:22 -0400)
committerRohit Vighne <rohit.vighne@gmail.com>
Fri, 7 Aug 2026 22:16:58 +0000 (18:16 -0400)
include/crucible/process.h
lib/process.cc

index 845ab277dd0c58ca8cc8b0a30444b9622e3686c9..b2ae817ac1cf4d3c9a9b350b99f965b84cdcf708 100644 (file)
 #include <unistd.h>
 
 extern "C" {
-       pid_t gettid() throw();
+       pid_t gettid()
+#ifdef __THROW
+       __THROW
+#endif
+       ;
 };
 
 namespace crucible {
index 808073eee6033ee26f80ad2348320497a7d8562c..6ef4e8cc23a23e1b00e3db2123568a56fd42556f 100644 (file)
 extern "C" {
        pid_t
        __attribute__((weak))
-       gettid() throw()
+       gettid()
+#ifdef __THROW
+       __THROW
+#endif
        {
                return syscall(SYS_gettid);
        }