summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorTAKAI 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
commite005a3c01bac8d86418336885e3501ef90aeac10 (patch)
treed65ac762c8d22da70e74e32737ae0a5bfe545330 /Configure
parentfc3ce1a8e466bab895f3b03009890b56e655d90d (diff)
downloadperl-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-xConfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/Configure b/Configure
index ab468d566b..72477c032d 100755
--- a/Configure
+++ b/Configure
@@ -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()