projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcccdd2
)
processes: MAXCOMLEN is not exposed on Solaris
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 25 May 2016 14:00:51 +0000
(16:00 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 25 May 2016 14:10:18 +0000
(16:10 +0200)
MAXCOMLEN in <sys/user.h> is only exposed to kernel
code. I think it's safe to assume that it isn't going
to change, so just hardcode it.
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
7711f25
..
c8dc763
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-128,8
+128,12
@@
# undef SAVE_FOB_64
#endif
-# include <sys/user.h>
# include <dirent.h>
+
+#ifndef MAXCOMLEN
+# define MAXCOMLEN 16
+#endif
+
/* #endif KERNEL_SOLARIS */
#else