From 087ac15ae2b1c14dd81e7c3509662c52efb4faaf Mon Sep 17 00:00:00 2001 From: David Zabner Date: Thu, 1 May 2025 20:39:45 -0400 Subject: [PATCH 1/2] possible fix for issue d++ not working on Redhat 8.10 #104 --- install_scripts/macos_install.sh | 0 wrapper_c/dcc_main.c | 9 +++++++++ 2 files changed, 9 insertions(+) mode change 100644 => 100755 install_scripts/macos_install.sh diff --git a/install_scripts/macos_install.sh b/install_scripts/macos_install.sh old mode 100644 new mode 100755 diff --git a/wrapper_c/dcc_main.c b/wrapper_c/dcc_main.c index 472877b..a61199c 100644 --- a/wrapper_c/dcc_main.c +++ b/wrapper_c/dcc_main.c @@ -30,6 +30,15 @@ #include #include +#include +#include + +#ifndef SYS_gettid +#error "SYS_gettid unavailable on this system" +#endif + +#define gettid() ((pid_t)syscall(SYS_gettid)) + #if __N_SANITIZERS__ > 1 #include #include From 069981e1df3a80dd490186af58a487acaea634bd Mon Sep 17 00:00:00 2001 From: David Zabner Date: Thu, 1 May 2025 20:58:58 -0400 Subject: [PATCH 2/2] Didn't mean to change the permissions on macos_install.sh --- install_scripts/macos_install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 install_scripts/macos_install.sh diff --git a/install_scripts/macos_install.sh b/install_scripts/macos_install.sh old mode 100755 new mode 100644