summaryrefslogtreecommitdiff
path: root/sysutils/psmisc/patches/patch-ac
blob: 8442dd23ce7567bd3a1800f3eaf5c859aeecb333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ac,v 1.5 2001/04/24 16:59:35 jlam Exp $

--- src/comm.h.orig	Wed Dec 13 18:43:10 2000
+++ src/comm.h
@@ -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