summaryrefslogtreecommitdiff
path: root/sysutils/psmisc/patches/patch-ab
blob: 70a0e070f9555e6068356aa51039c37072cbe985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- comm.h.orig	Tue Sep 19 15:02:20 1995
+++ comm.h	Sat Jul 18 22:40:04 1998
@@ -6,6 +6,10 @@
 #ifndef COMM_H
 #define COMM_H
 
+#include <sys/param.h>
+#ifdef MAXCOMLEN
+#define COMM_LEN MAXCOMLEN
+#else
 #if 0 /* broken in 1.3.xx */
 #include <linux/sched.h>
 #define COMM_LEN sizeof(dummy.comm)
@@ -14,5 +18,6 @@
 #define COMM_LEN 16 /* synchronize with size of comm in struct task_struct in
 		       /usr/include/linux/sched.h */
 #endif
+#endif /* MAXCOMLEN */
 
 #endif