diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/replace/replace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c index 6f51bd2e99..02c3d04163 100644 --- a/source4/lib/replace/replace.c +++ b/source4/lib/replace/replace.c @@ -394,6 +394,8 @@ duplicate a string return strtouq(str, endptr, base); #elif defined(HAVE___STRTOULL) return __strtoull(str, endptr, base); +#elif SIZEOF_LONG == SIZEOF_LONG_LONG + return (unsigned long long int) strtoul(str, endptr, base); #else # error "You need a strtoull function" #endif @@ -407,6 +409,8 @@ duplicate a string return strtoq(str, endptr, base); #elif defined(HAVE___STRTOLL) return __strtoll(str, endptr, base); +#elif SIZEOF_LONG == SIZEOF_LONG_LONG + return (long long int) strtol(str, endptr, base); #else # error "You need a strtoll function" #endif |