Overview
Comment: | configure: Check return type of strerror_r
Just checking for _GNU_SOURCE is not enough, because musl still returns |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
af603291ded3a04c7424f745089d7a21 |
User & Date: | js on 2020-04-05 13:23:24 |
Other Links: | manifest | tags |
Context
2020-04-05
| ||
14:22 | Work around musl having broken dlclose() check-in: 29c8a7106b user: js tags: trunk | |
13:23 | configure: Check return type of strerror_r check-in: af603291de user: js tags: trunk | |
11:46 | configure: Check whether *_l need _GNU_SOURCE check-in: fdbe09e8ea user: js tags: trunk | |
Changes
Modified configure.ac from [d98714da44] to [8e938279fe].
︙ | |||
821 822 823 824 825 826 827 | 821 822 823 824 825 826 827 828 829 830 831 832 833 834 | - - | AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]) ;; esac |
︙ | |||
1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 | 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 | + + + + + + + + + + + + + + + + + + + + | ], [ AC_MSG_RESULT(no) ], [ AC_MSG_RESULT(yes) CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS" ]) ]) dnl This check needs to happen after the above, as _GNU_SOURCE can change the dnl return type. AC_CHECK_FUNCS(strerror_r, [ AC_MSG_CHECKING(for return type of strerror_r) AC_TRY_COMPILE([ #include <stdio.h> #include <string.h> ], [ switch (strerror_r(0, NULL, 0)) { case 0:; } ], [ AC_MSG_RESULT(int) ], [ AC_MSG_RESULT(char *) AC_DEFINE(STRERROR_R_RETURNS_CHARP, 1, [Whether strerror_r returns char *]) ]) ]) AC_CHECK_HEADERS(sys/utsname.h) AC_CHECK_FUNCS(uname) case "$host_os" in amigaos*) ;; |
︙ |
Modified src/exceptions/OFException.m from [0f0c49d47c] to [3cf46d2139].
︙ | |||
167 168 169 170 171 172 173 | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | - + | case EUSERS: return @"EUSERS"; case EWOULDBLOCK: return @"EWOULDBLOCK"; } #endif |
︙ |