add/use SIGAR_64BIT macro and include powerpc64
This commit is contained in:
parent
1c17ba5160
commit
859900e605
|
@ -20,7 +20,7 @@
|
|||
#include "javasigar_generated.h"
|
||||
#include "javasigar.h"
|
||||
|
||||
#if defined(__osf__) || defined(__LP64__)
|
||||
#ifdef SIGAR_64BIT
|
||||
#define SIGAR_POINTER_LONG
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue