summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 907f143)
raw | patch | inline | side by side (parent: 907f143)
author | octo <octo> | |
Sat, 8 Apr 2006 16:54:34 +0000 (16:54 +0000) | ||
committer | octo <octo> | |
Sat, 8 Apr 2006 16:54:34 +0000 (16:54 +0000) |
Unify the define-handling in processes.c
configure.in | patch | blob | history | |
src/processes.c | patch | blob | history |
diff --git a/configure.in b/configure.in
index 0aeb0223c3246735a6f686291ea6479c7981ce47..6a33174d46cb0d70757dec7d0767adfd0980f560 100644 (file)
--- a/configure.in
+++ b/configure.in
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 3.9.0)
+AC_INIT(collectd, 3.9.0-alpha1)
AC_CONFIG_SRCDIR(src/collectd.c)
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE(dist-bzip2)
# For load module
AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
+# For the `processes' plugin
+AC_CHECK_FUNCS(thread_info)
+
# For users module
AC_CHECK_FUNCS(getutent getutxent)
@@ -357,11 +360,11 @@ AC_CHECK_MEMBERS([struct net_device_stats.rx_bytes, struct net_device_stats.tx_b
AC_MSG_CHECKING([for kernel type ($host_os)])
case $host_os in
*linux*)
- AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
+ AC_DEFINE([KERNEL_LINUX], 1, [True if program is to be compiled for a Linux kernel])
ac_system="Linux"
;;
*solaris*)
- AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
+ AC_DEFINE([KERNEL_SOLARIS], 1, [True if program is to be compiled for a Solaris kernel])
ac_system="Solaris"
;;
*)
diff --git a/src/processes.c b/src/processes.c
index 22d8c0452b3b20ff1093bd7b9fff7a8edceb1a42..8c8b702d1fc494f1b1e2f7e36a8f8f9fe789f2d4 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
/**
* collectd - src/processes.c
* Copyright (C) 2005 Lyonel Vincent
+ * Copyright (C) 2006 Florian Forster (Mach code)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
#define MODULE_NAME "processes"
-#if HAVE_THREAD_INFO || defined(KERNEL_LINUX)
+#if HAVE_THREAD_INFO || KERNEL_LINUX
# define PROCESSES_HAVE_READ 1
#else
# define PROCESSES_HAVE_READ 0