summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fcccdd2)
raw | patch | inline | side by side (parent: fcccdd2)
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.
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 7711f25de02d3c94d43b8a72e772e1d2e696621e..c8dc763e517affa8b6dddd56fd3b60a5a88ab152 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
# undef SAVE_FOB_64
#endif
-# include <sys/user.h>
# include <dirent.h>
+
+#ifndef MAXCOMLEN
+# define MAXCOMLEN 16
+#endif
+
/* #endif KERNEL_SOLARIS */
#else