-
Notifications
You must be signed in to change notification settings - Fork 178
Closed
Description
IGC currently calls strerror_r
and expects it to return a const char*
:
errMsg = strerror_r(errCode, buf, sizeof(buf)); |
This is glibc-specific behavior. The POSIX behavior is for strerror_r
to always write its output to the passed-in buffer, and to return an integer error code. This behavior is the only variant available in musl, the default on android bionic, and is available in glibc by defining the _POSIX_C_SOURCE
macro to a value ≥ 200112L
while not setting _GNU_SOURCE
.
Could IGC set _POSIX_C_SOURCE
before including headers in system.cpp
and switch to expecting the POSIX behavior for this, to improve portability?
Metadata
Metadata
Assignees
Labels
No labels