summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07d5fdf)
raw | patch | inline | side by side (parent: 07d5fdf)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 5 Feb 2007 21:42:26 +0000 (22:42 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 7 Feb 2007 12:12:46 +0000 (13:12 +0100) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/processes.c | patch | blob | history | |
src/utils_dns.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index c8f301684f5f7bd819a1c3ae1601df42b12c5634..68984458058df5e69769662b7086833867d22c00 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
};
static int ps_pagefaults_ds_num = 2;
+#if HAVE_THREAD_INFO | KERNEL_LINUX
static char *config_keys[] =
{
"Process",
NULL
};
static int config_keys_num = 1;
+#endif
typedef struct procstat_entry_s
{
struct procstat_entry_s *instances;
} procstat_t;
+#if HAVE_THREAD_INFO | KERNEL_LINUX
static procstat_t *list_head_g = NULL;
+#endif
#if HAVE_THREAD_INFO
static mach_port_t port_host_self;
} /* while (pse != NULL) */
} /* for (ps = list_head_g; ps != NULL; ps = ps->next) */
}
-#endif /* HAVE_THREAD_INFO | KERNEL_LINUX */
static int ps_config (char *key, char *value)
{
return (0);
}
+#endif /* HAVE_THREAD_INFO | KERNEL_LINUX */
static void ps_init (void)
{
plugin_register ("ps_cputime", NULL, NULL, ps_cputime_write);
plugin_register ("ps_count", NULL, NULL, ps_count_write);
plugin_register ("ps_pagefaults", NULL, NULL, ps_pagefaults_write);
+#if HAVE_THREAD_INFO | KERNEL_LINUX
cf_register (MODULE_NAME, ps_config, config_keys, config_keys_num);
+#endif
}
#undef BUFSIZE
diff --git a/src/utils_dns.c b/src/utils_dns.c
index e9aec38f6b8a010b6510652eb72cb6971c533bf7..89c03203f6bc2a4916a15722ab3f1048b170acfd 100644 (file)
--- a/src/utils_dns.c
+++ b/src/utils_dns.c
# define PPP_CONTROL_VAL 0x03 /* The control byte value */
#endif
-#ifdef __linux__
+#ifndef __FAVOR_BSD
#define uh_sport source
#define uh_dport dest
#endif