Source
34
34
# define PS_PSTAT_ARGV
35
35
#elif defined(__APPLE__) && defined(__MACH__) /* OS X */
36
36
# include <TargetConditionals.h>
37
37
# if TARGET_OS_MAC == 1 && TARGET_OS_EMBEDDED == 0 && TARGET_OS_IPHONE == 0 && TARGET_IPHONE_SIMULATOR == 0
38
38
# define PS_OVERWRITE_ARGV
39
39
# define PS_DARWIN_ARGV
40
40
# endif
41
41
#endif
42
42
43
43
char **setproctitle_save_env(int argc, char **argv);
44
+
#if !defined(HAVE_FUNCTION_SETPROCTITLE) && (defined(PS_OVERWRITE_ARGV) || defined(PS_PSTAT_ARGV))
44
45
void setproctitle_set_status(const char *status);
46
+
#endif
45
47
void setproctitle_free_env(void);
46
48
47
49
#endif /* ZABBIX_SETPROCTITLE_H */