add/use SIGAR_64BIT macro and include powerpc64

This commit is contained in:
Doug MacEachern 2006-07-11 17:05:48 +00:00
parent 1c17ba5160
commit 859900e605
3 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "javasigar_generated.h"
#include "javasigar.h"
#if defined(__osf__) || defined(__LP64__)
#ifdef SIGAR_64BIT
#define SIGAR_POINTER_LONG
#endif

View File

@ -1,6 +1,10 @@
#ifndef SIGAR_PRIVATE_DOT_H
#define SIGAR_PRIVATE_DOT_H
#if defined(__LP64__) || defined(__powerpc64__) || defined(__osf__)
#define SIGAR_64BIT
#endif
#include "sigar_log.h"
#include <stdlib.h>

View File

@ -1573,7 +1573,7 @@ static SIGAR_INLINE unsigned int hex2int(const char *x, int len)
#define HEX_ENT_LEN 8
#ifdef __LP64__
#ifdef SIGAR_64BIT
#define ROUTE_FMT "%16s %128s %128s %X %ld %ld %ld %128s %ld %ld %ld\n"
#else
#define ROUTE_FMT "%16s %128s %128s %X %lld %lld %lld %128s %lld %lld %lld\n"