From e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 28 May 2026 23:56:29 -0300 Subject: 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. --- src/threads.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/threads.cc') 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)); } } -- cgit v1.2.3