Code

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 7711f25de02d3c94d43b8a72e772e1d2e696621e..c8dc763e517affa8b6dddd56fd3b60a5a88ab152 100644 (file)
 #  undef SAVE_FOB_64
 #endif
 
-# include <sys/user.h>
 # include <dirent.h>
+
+#ifndef MAXCOMLEN
+#  define MAXCOMLEN 16
+#endif
+
 /* #endif KERNEL_SOLARIS */
 
 #else