From e2211bed12912a57e3ff9b2c42b0d85a949354bc Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 25 Oct 2012 15:41:32 -0700 Subject: Fix sparc64 build. * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c (__get_clockfreq_via_proc_openprom): Use strtoumax instead of strtoull. --- ChangeLog | 6 ++++++ sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6656fa1146..f8127842b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-10-25 David S. Miller + + * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c + (__get_clockfreq_via_proc_openprom): Use strtoumax instead + of strtoull. + 2012-10-25 Roland McGrath * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c b/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c index abd0ebfb9f..cb31e5ca2e 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c @@ -129,7 +129,7 @@ __get_clockfreq_via_proc_openprom (void) if (read (clkfreq_fd, type_string, sizeof (type_string)) > 0) result = (hp_timing_t) - strtoull (type_string, NULL, 16); + strtoumax (type_string, NULL, 16); close (clkfreq_fd); } } -- cgit 1.4.1