package/apr: fix musl build
strerror_r on musl always returns an int since its addition back in 2011 with https://git.musl-libc.org/cgit/musl/commit/src/string/strerror_r.c?id=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 As a result, setting ac_cv_strerror_r_rc_int to no results in the following build failure since bump to version 1.7.2 in commit783cd8d90d
: misc/unix/errorcodes.c: In function 'native_strerror': misc/unix/errorcodes.c:385:9: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 385 | msg = strerror_r(statcode, buf, bufsize); | ^ Fixes:783cd8d90d
- http://autobuild.buildroot.org/results/9a42a4427ff64d47da61c731abb99d7585781cdd Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 6f34e68217264fb62c48ce28c48bf759b30fef0e) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
a9d61f7587
commit
1b5301c1d7
@ -39,7 +39,7 @@ APR_CONF_ENV = \
|
||||
ac_cv_sizeof_struct_iovec=8 \
|
||||
ac_cv_sizeof_pid_t=4 \
|
||||
ac_cv_struct_rlimit=yes \
|
||||
ac_cv_strerror_r_rc_int=no \
|
||||
ac_cv_strerror_r_rc_int=$(if $(BR2_TOOLCHAIN_USES_MUSL),yes,no) \
|
||||
ac_cv_o_nonblock_inherited=no \
|
||||
apr_cv_mutex_recursive=yes \
|
||||
apr_cv_epoll=yes \
|
||||
|
Loading…
Reference in New Issue
Block a user