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_generated.h"
#include "javasigar.h" #include "javasigar.h"
#if defined(__osf__) || defined(__LP64__) #ifdef SIGAR_64BIT
#define SIGAR_POINTER_LONG #define SIGAR_POINTER_LONG
#endif #endif

View File

@ -1,6 +1,10 @@
#ifndef SIGAR_PRIVATE_DOT_H #ifndef SIGAR_PRIVATE_DOT_H
#define 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 "sigar_log.h"
#include <stdlib.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 #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" #define ROUTE_FMT "%16s %128s %128s %X %ld %ld %ld %128s %ld %ld %ld\n"
#else #else
#define ROUTE_FMT "%16s %128s %128s %X %lld %lld %lld %128s %lld %lld %lld\n" #define ROUTE_FMT "%16s %128s %128s %X %lld %lld %lld %128s %lld %lld %lld\n"