File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 13
13
#include "fpm.h"
14
14
15
15
#ifndef HAVE_SETPROCTITLE
16
- #ifdef __linux__
16
+ #if defined( __linux__ ) || defined( __APPLE__ )
17
17
static char * * fpm_env_argv = NULL ;
18
18
static size_t fpm_env_argv_len = 0 ;
19
19
#endif
@@ -122,8 +122,7 @@ void fpm_env_setproctitle(char *title) /* {{{ */
122
122
setproctitle_fast ("%s" , title );
123
123
#elif defined(HAVE_SETPROCTITLE )
124
124
setproctitle ("%s" , title );
125
- #else
126
- #ifdef __linux__
125
+ #elif defined(__linux__ ) || defined(__APPLE__ )
127
126
size_t prefixlen = strlen (SETPROCTITLE_PREFIX );
128
127
if (fpm_env_argv != NULL && fpm_env_argv_len > prefixlen + 3 ) {
129
128
memset (fpm_env_argv [0 ], 0 , fpm_env_argv_len );
@@ -132,7 +131,6 @@ void fpm_env_setproctitle(char *title) /* {{{ */
132
131
fpm_env_argv [1 ] = NULL ;
133
132
}
134
133
#endif
135
- #endif
136
134
}
137
135
/* }}} */
138
136
@@ -208,7 +206,7 @@ int fpm_env_init_main() /* {{{ */
208
206
}
209
207
}
210
208
#ifndef HAVE_SETPROCTITLE
211
- #ifdef __linux__
209
+ #if defined( __linux__ ) || defined( __APPLE__ )
212
210
int i ;
213
211
char * first = NULL ;
214
212
char * last = NULL ;
You can’t perform that action at this time.
0 commit comments