[Buildroot] [git commit] apr: fix size of pid_t

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Mar 21 21:55:28 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=ee8cbc5fca779ff054a50ed8e6271952367147c7
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

pid_t is a signed 32bits integer on both 32bits and 64bits
architectures.
This fixes an issue with apache server which causes bad pid
to be written in PidFile

Signed-off-by: Julien Beraud <julien.beraud at spectracom.orolia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/apr/apr.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/apr/apr.mk b/package/apr/apr.mk
index 361a79f..f09f943 100644
--- a/package/apr/apr.mk
+++ b/package/apr/apr.mk
@@ -22,6 +22,7 @@ APR_CONF_ENV = \
 	apr_cv_mutex_robust_shared=no \
 	apr_cv_tcp_nodelay_with_cork=yes \
 	ac_cv_sizeof_struct_iovec=8 \
+	ac_cv_sizeof_pid_t=4 \
 	ac_cv_struct_rlimit=yes \
 	ac_cv_o_nonblock_inherited=no \
 	apr_cv_mutex_recursive=yes


More information about the buildroot mailing list