From ec98ffbc5e3efa81979af0f134fdf97887678e90 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 9 May 2008 04:25:39 +0000 Subject: [PATCH] mv HAS_NPTL define --- src/os/linux/linux_sigar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index eeb2921a..ec67b1c2 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -45,6 +45,9 @@ #define PROC_PARTITIONS PROC_FS_ROOT "partitions" #define PROC_DISKSTATS PROC_FS_ROOT "diskstats" +/* Native POSIX Thread Library 2.6+ kernel */ +#define SIGAR_HAS_NPTL (sigar->iostat == IOSTAT_DISKSTATS) + /* * /proc/self/stat fields: * 1 - pid @@ -210,9 +213,6 @@ char *sigar_os_error_string(sigar_t *sigar, int err) return NULL; } -/* Native POSIX Thread Library 2.6+ kernel */ -#define SIGAR_HAS_NPTL (sigar->iostat == IOSTAT_DISKSTATS) - static int sigar_cpu_total_count(sigar_t *sigar) { sigar->ncpu = (int)sysconf(_SC_NPROCESSORS_CONF);