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:
parent
80177b29f4
commit
c84c516b17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user