On Tue, Mar 12, 2019 at 02:21:46PM -0500, William A Rowe Jr wrote: > Rereading the APR_CHECK_TYPES_COMPATIBLE logic, I misread it. We test and > successively pass ssize_t as int compatible, followed by retesting and > passing ssize_t as long compatible, so the resulting > APR_SSIZE_T_FMT pattern is "ld". However, even that test is wonky as it > relies on a gcc/icc internal nonstandard __builtin_types_compatible_p call. > > Try compile is our friend here, working on the more general fix to test > that sizeof type $1 is sizeof type $2 and that the corresponding "d" "ld" > "lld" param works in a strict printf.
Nice! Please CC me when you have a patch and I will test it on OpenBSD.