processes: MAXCOMLEN is not exposed on Solaris
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 25 May 2016 14:00:51 +0000 (16:00 +0200)
committerMarc 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

index 7711f25..c8dc763 100644 (file)
 #  undef SAVE_FOB_64
 #endif
 
-# include <sys/user.h>
 # include <dirent.h>
+
+#ifndef MAXCOMLEN
+#  define MAXCOMLEN 16
+#endif
+
 /* #endif KERNEL_SOLARIS */
 
 #else