diff options
-rw-r--r-- | include/libbb.h | 4 | ||||
-rw-r--r-- | procps/ps.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index e3b17655c..2cdfac639 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -2088,6 +2088,10 @@ int read_line_input(const char* prompt, char* command, int maxsize) FAST_FUNC; | |||
2088 | read_line_input(prompt, command, maxsize) | 2088 | read_line_input(prompt, command, maxsize) |
2089 | #endif | 2089 | #endif |
2090 | 2090 | ||
2091 | #if ENABLE_PLATFORM_MINGW32 | ||
2092 | # undef COMM_LEN | ||
2093 | # define COMM_LEN 32 | ||
2094 | #endif | ||
2091 | #ifndef COMM_LEN | 2095 | #ifndef COMM_LEN |
2092 | # ifdef TASK_COMM_LEN | 2096 | # ifdef TASK_COMM_LEN |
2093 | enum { COMM_LEN = TASK_COMM_LEN }; | 2097 | enum { COMM_LEN = TASK_COMM_LEN }; |
diff --git a/procps/ps.c b/procps/ps.c index 823539b9a..329576eb8 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -383,7 +383,11 @@ static const ps_out_t out_spec[] ALIGN_PTR = { | |||
383 | /* Mandated by http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html: */ | 383 | /* Mandated by http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html: */ |
384 | { 8 , "user" ,"USER" ,func_user ,PSSCAN_UIDGID }, | 384 | { 8 , "user" ,"USER" ,func_user ,PSSCAN_UIDGID }, |
385 | { 8 , "group" ,"GROUP" ,func_group ,PSSCAN_UIDGID }, | 385 | { 8 , "group" ,"GROUP" ,func_group ,PSSCAN_UIDGID }, |
386 | #if ENABLE_PLATFORM_MINGW32 | ||
387 | { COMM_LEN , "comm" ,"COMMAND",func_comm ,PSSCAN_COMM }, | ||
388 | #else | ||
386 | { 16 , "comm" ,"COMMAND",func_comm ,PSSCAN_COMM }, | 389 | { 16 , "comm" ,"COMMAND",func_comm ,PSSCAN_COMM }, |
390 | #endif | ||
387 | { MAX_WIDTH , "args" ,"COMMAND",func_args ,PSSCAN_COMM }, | 391 | { MAX_WIDTH , "args" ,"COMMAND",func_args ,PSSCAN_COMM }, |
388 | { 5 , "pid" ,"PID" ,func_pid ,PSSCAN_PID }, | 392 | { 5 , "pid" ,"PID" ,func_pid ,PSSCAN_PID }, |
389 | { 5 , "ppid" ,"PPID" ,func_ppid ,PSSCAN_PPID }, | 393 | { 5 , "ppid" ,"PPID" ,func_ppid ,PSSCAN_PPID }, |