From df486b12dd423cf4f21245d3c2af8f4ee8074732 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 16 Feb 2005 22:39:10 +0000 Subject: [PATCH] rid 64bit compile warnings --- src/os/linux/linux_sigar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index df1a3d1f..297e3b42 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -1366,7 +1366,11 @@ static unsigned int hex2int(const char *x) return j; } +#ifdef __LP64__ +#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" +#endif #define RTF_UP 0x0001 int sigar_net_route_list_get(sigar_t *sigar,