aboutsummaryrefslogtreecommitdiff
path: root/src/threads.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-05-28 23:56:29 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-05-28 23:56:29 -0300
commite2ba7cd29617ae05087ad3d25c55a2eb8ce607a3 (patch)
tree2a93ee38c7cc9c83b3b89b3f0f7cbb6fcb8e8b3c /src/threads.cc
parentd1c4dce3be82aa7e50ddb5b43f15ecc00a16f985 (diff)
downloadgame-e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3.tar.gz
game-e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3.zip
fix issues and warnings when compiling with glibc < 2.32 (#57, #58)
This also fixes some inconsistencies such as mixing both strerror and strerrordesc_np, and possible formatting issues.
Diffstat (limited to 'src/threads.cc')
-rw-r--r--src/threads.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threads.cc b/src/threads.cc
index fbced09..ba17086 100644
--- a/src/threads.cc
+++ b/src/threads.cc
@@ -146,10 +146,10 @@ Semaphore::~Semaphore(void){
int ErrorCode;
if((ErrorCode = pthread_mutex_destroy(&this->mutex)) != 0){
error("Semaphore::~Semaphore: Kann Mutex nicht freigeben: (%d) %s.\n",
- ErrorCode, strerrordesc_np(ErrorCode));
+ ErrorCode, GetErrorDescription(ErrorCode));
}else if((ErrorCode = pthread_cond_destroy(&this->condition)) != 0){
error("Semaphore::~Semaphore: Kann Wartebedingung nicht freigeben: (%d) %s.\n",
- ErrorCode, strerrordesc_np(ErrorCode));
+ ErrorCode, GetErrorDescription(ErrorCode));
}
}