From 43afd3fda8c0aba14b2f41778b050c0a93d64253 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 20 Aug 2004 22:50:33 +0000 Subject: r1973: for systems that don't have strtoull() try strtouq(). This should fix the build for some BSD varients. (This used to be commit 73e9ee791472bb212efe0eb4744daa91678263ad) --- source4/lib/replace.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/replace.c b/source4/lib/replace.c index de32d377d5..64234f7042 100644 --- a/source4/lib/replace.c +++ b/source4/lib/replace.c @@ -468,3 +468,15 @@ char *rep_inet_ntoa(struct in_addr ip) return ret; } #endif + + +#ifndef HAVE_STRTOULL + unsigned long long int strtoull(const char *str, char **endptr, int base) +{ +#ifdef HAVE_STRTOUQ + return strtouq(str, endptr, base); +#else +#error "system must support 64 bit integer read from strings" +#endif +} +#endif -- cgit