File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ bool update_process_title = true;
89
89
#endif
90
90
91
91
92
+ #ifndef PS_USE_NONE
93
+
92
94
#ifndef PS_USE_CLOBBER_ARGV
93
95
/* all but one option need a buffer to write their ps line in */
94
96
#define PS_BUFFER_SIZE 256
@@ -104,6 +106,8 @@ static size_t ps_buffer_cur_len; /* nominal strlen(ps_buffer) */
104
106
105
107
static size_t ps_buffer_fixed_size ; /* size of the constant prefix */
106
108
109
+ #endif /* not PS_USE_NONE */
110
+
107
111
/* save the original argv[] location here */
108
112
static int save_argc ;
109
113
static char * * save_argv ;
@@ -420,7 +424,11 @@ get_ps_display(int *displen)
420
424
}
421
425
#endif
422
426
427
+ #ifndef PS_USE_NONE
423
428
* displen = (int ) (ps_buffer_cur_len - ps_buffer_fixed_size );
424
429
425
430
return ps_buffer + ps_buffer_fixed_size ;
431
+ #else
432
+ return "" ;
433
+ #endif
426
434
}
You can’t perform that action at this time.
0 commit comments