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