diff options
author | TAKAI Kousuke <62541129+t-a-k@users.noreply.github.com> | 2022-07-16 17:29:05 +0900 |
---|---|---|
committer | ℕicolas ℝ <nicolas@atoomic.org> | 2022-07-20 14:55:35 -0600 |
commit | e005a3c01bac8d86418336885e3501ef90aeac10 (patch) | |
tree | d65ac762c8d22da70e74e32737ae0a5bfe545330 /Configure | |
parent | fc3ce1a8e466bab895f3b03009890b56e655d90d (diff) | |
download | perl-e005a3c01bac8d86418336885e3501ef90aeac10.tar.gz |
Configure: Add missing `#include <inttypes.h>` to test programs
With -Duse64bitint on 32-bit machines, UV might be configured
to `uint64_t`. But some Configure tests used $uvtype without including
<inttypes.h>, which may cause compilation error of those tests on
sucn configurations, and eventually make perl not built correctly.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -17026,6 +17026,10 @@ $cat <<EOP >try.c #ifdef I_STDLIB #include <stdlib.h> #endif +#$i_inttypes I_INTTYPES +#ifdef I_INTTYPES +#include <inttypes.h> +#endif #include <sys/types.h> #include <signal.h> #ifdef SIGFPE @@ -20124,6 +20128,10 @@ EOM #ifdef I_STDLIB #include <stdlib.h> #endif +#$i_inttypes I_INTTYPES +#ifdef I_INTTYPES +#include <inttypes.h> +#endif #include <sys/types.h> typedef $uvtype UV; int main() |