summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2019-08-27 15:00:26 -0400
committerAndy Dougherty <doughera@lafayette.edu>2019-12-29 17:39:32 -0500
commit7454e5720486ba26c2e118be22fa882782f4a00b (patch)
treeec2efc07f0d1e07222537d78477d51f490e27dea /Configure
parent793824db103f6f9040802055098223c7ab840ea4 (diff)
downloadperl-7454e5720486ba26c2e118be22fa882782f4a00b.tar.gz
Fix strtoull() probe to run under clang++.
Include the appropriate header and get rid of slightly incorrect prototype. Change function return type to void since we don't explicitly return a useful value.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/Configure b/Configure
index f01786eee2..9f959c835e 100755
--- a/Configure
+++ b/Configure
@@ -19240,14 +19240,14 @@ case "$d_longlong-$d_strtoull" in
Checking whether your strtoull() works okay...
EOM
$cat >try.c <<'EOCP'
+#include <stdlib.h>
#include <errno.h>
#ifdef __hpux
#define strtoull __strtoull
#endif
#include <stdio.h>
-extern unsigned long long int strtoull(char *s, char **, int);
static int bad = 0;
-int check(char *s, long long eull, int een) {
+void check(const char *s, long long eull, int een) {
long long gull;
errno = 0;
gull = strtoull(s, 0, 10);