Differences From Artifact [0f0c49d47c]:
- File src/exceptions/OFException.m — part of check-in [c7f0229795] at 2020-01-02 01:51:34 on branch trunk — Update copyright (user: js, size: 7066) [annotate] [blame] [check-ins using] [more...]
To Artifact [3cf46d2139]:
- File
src/exceptions/OFException.m
— part of check-in
[af603291de]
at
2020-04-05 13:23:24
on branch trunk
— configure: Check return type of strerror_r
Just checking for _GNU_SOURCE is not enough, because musl still returns
int even with _GNU_SOURCE, despite the musl header explicitly checking
for _GNU_SOURCE. (user: js, size: 7051) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
167 168 169 170 171 172 173 | case EUSERS: return @"EUSERS"; case EWOULDBLOCK: return @"EWOULDBLOCK"; } #endif | | | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | case EUSERS: return @"EUSERS"; case EWOULDBLOCK: return @"EWOULDBLOCK"; } #endif #if defined(STRERROR_R_RETURNS_CHARP) /* glibc uses a different strerror_r when _GNU_SOURCE is defined */ char *string; if ((string = strerror_r(errNo, buffer, 256)) == NULL) return @"Unknown error (strerror_r failed)"; ret = [OFString stringWithCString: string |
︙ | ︙ |