Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2013-10-03 14:24:15 +0400
committerAndris Mednis <Andris.Mednis@zabbix.com>2013-10-03 14:24:15 +0400
commitcfdb40f2e1c332d02c03fef082969e4903f03489 (patch)
tree2a4b62dbdfd8f1465560a0b23f747b6ca6f41e10 /include/setproctitle.h
parent2eaf94e2b40dc099f4dde7a3ecabc395d4a78d48 (diff)
...G...PS. [ZBXNEXT-1855] added HP-UX and OS X support to setproctitle()
Diffstat (limited to 'include/setproctitle.h')
-rw-r--r--include/setproctitle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/setproctitle.h b/include/setproctitle.h
index e7e070fbd7f..67d64416cb3 100644
--- a/include/setproctitle.h
+++ b/include/setproctitle.h
@@ -30,6 +30,12 @@
# define PS_APPEND_ARGV
#elif defined(HAVE_SYS_PSTAT_H) /* HP-UX */
# define PS_PSTAT_ARGV
+#elif defined(__APPLE__) && defined(__MACH__) /* OS X */
+# include <TargetConditionals.h>
+# if TARGET_OS_MAC == 1 && TARGET_OS_EMBEDDED == 0 && TARGET_OS_IPHONE == 0 && TARGET_IPHONE_SIMULATOR == 0
+# define PS_OVERWRITE_ARGV
+# define PS_DARWIN_ARGV
+# endif
#endif
char ** setproctitle_save_env(int argc, char **argv);