This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix strtoull() probe to run under clang++.
authorAndy Dougherty <doughera@lafayette.edu>
Tue, 27 Aug 2019 19:00:26 +0000 (15:00 -0400)
committerAndy Dougherty <doughera@lafayette.edu>
Sun, 29 Dec 2019 22:39:32 +0000 (17:39 -0500)
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.

Configure

index f01786e..9f959c8 100755 (executable)
--- 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);