From a3410ce4d4c893e144f7dcd04f3593573abb439e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 10 May 2007 15:25:14 +0000 Subject: [PATCH] HP-UX does not have strtoull Submitted by: Jan Kneschke --- src/sigar_ptql.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sigar_ptql.c b/src/sigar_ptql.c index 487d9c05..a98faf2c 100644 --- a/src/sigar_ptql.c +++ b/src/sigar_ptql.c @@ -26,8 +26,11 @@ #include "pcre.h" #endif -#ifdef WIN32 -#define strtoull strtoul /*XXX*/ +/* See http://gcc.gnu.org/ml/libstdc++/2002-03/msg00164.html */ +#if defined(WIN32) || (defined(__hpux) && defined(SIGAR_64BIT)) +#define strtoull strtoul +#elif (defined(__hpux) && !defined(SIGAR_64BIT)) +#define strtoull __strtoull #else #include #endif