From: Ruben Kerkhof Date: Wed, 25 May 2016 14:00:51 +0000 (+0200) Subject: processes: MAXCOMLEN is not exposed on Solaris X-Git-Tag: collectd-5.5.2~6^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9ee4ca88407137ee5d9588c18f9edea69ee2ace7;p=collectd.git processes: MAXCOMLEN is not exposed on Solaris MAXCOMLEN in is only exposed to kernel code. I think it's safe to assume that it isn't going to change, so just hardcode it. --- diff --git a/src/processes.c b/src/processes.c index 7711f25d..c8dc763e 100644 --- a/src/processes.c +++ b/src/processes.c @@ -128,8 +128,12 @@ # undef SAVE_FOB_64 #endif -# include # include + +#ifndef MAXCOMLEN +# define MAXCOMLEN 16 +#endif + /* #endif KERNEL_SOLARIS */ #else