diff options
Diffstat (limited to 'procps/ps.c')
-rw-r--r-- | procps/ps.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c index 1d380590d..e8b122c5a 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -608,7 +608,9 @@ int ps_main(int argc UNUSED_PARAM, char **argv) | |||
608 | procps_status_t *p; | 608 | procps_status_t *p; |
609 | llist_t* opt_o = NULL; | 609 | llist_t* opt_o = NULL; |
610 | char default_o[sizeof(DEFAULT_O_STR)]; | 610 | char default_o[sizeof(DEFAULT_O_STR)]; |
611 | #if ENABLE_SELINUX || ENABLE_FEATURE_SHOW_THREADS | ||
611 | int opt; | 612 | int opt; |
613 | #endif | ||
612 | enum { | 614 | enum { |
613 | OPT_Z = (1 << 0), | 615 | OPT_Z = (1 << 0), |
614 | OPT_o = (1 << 1), | 616 | OPT_o = (1 << 1), |
@@ -638,7 +640,11 @@ int ps_main(int argc UNUSED_PARAM, char **argv) | |||
638 | * procps v3.2.7 supports -T and shows tids as SPID column, | 640 | * procps v3.2.7 supports -T and shows tids as SPID column, |
639 | * it also supports -L where it shows tids as LWP column. | 641 | * it also supports -L where it shows tids as LWP column. |
640 | */ | 642 | */ |
641 | opt = getopt32(argv, "Zo:*aAdefl"IF_FEATURE_SHOW_THREADS("T"), &opt_o); | 643 | #if ENABLE_SELINUX || ENABLE_FEATURE_SHOW_THREADS |
644 | opt = | ||
645 | #endif | ||
646 | getopt32(argv, "Zo:*aAdefl"IF_FEATURE_SHOW_THREADS("T"), &opt_o); | ||
647 | |||
642 | if (opt_o) { | 648 | if (opt_o) { |
643 | do { | 649 | do { |
644 | parse_o(llist_pop(&opt_o)); | 650 | parse_o(llist_pop(&opt_o)); |