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/map.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map.cc') diff --git a/src/map.cc b/src/map.cc index 86b0c83..b39d25a 100644 --- a/src/map.cc +++ b/src/map.cc @@ -1713,7 +1713,7 @@ void PatchSector(int SectorX, int SectorY, int SectorZ, bool FullSector, if(rename(FileNameBak, FileName) != 0){ int ErrCode = errno; error("PatchSector: Fehler %d beim Umbenennen von %s.\n", ErrCode, FileNameBak); - error("# Fehler %d: %s.\n", ErrCode, strerror(ErrCode)); + error("# Fehler %d: %s.\n", ErrCode, GetErrorDescription(ErrCode)); throw "cannot patch ORIGMAP"; } } -- cgit v1.2.3