1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8698: attempt to cope with lack of strtoull() on HPUX

This commit is contained in:
Andrew Tridgell 2005-07-22 03:46:57 +00:00 committed by Gerald (Jerry) Carter
parent 80177b29f4
commit c84c516b17

View File

@ -512,7 +512,15 @@ int get_time_zone(time_t t)
#ifdef HAVE_STRTOUQ
return strtouq(str, endptr, base);
#else
#error "system must support 64 bit integer read from strings"
unsigned long long int v;
if (sscanf(str, "%lli", &v) != 1) {
smb_panic("system does not support %lli in sscanf");
}
if (endptr) {
/* try to get endptr right - uggh */
strtoul(str, endptr, base);
}
return v;
#endif
}
#endif