diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-28 08:36:34 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-28 08:36:34 +0000 |
commit | dc2af8347b5072a827d564623af8d7f10261e7f0 (patch) | |
tree | 202381ba1ff62c69c835da0c7f42ebad8fc2e608 /osdep-darwin.c | |
parent | 64ea8829af8719c0dc1eb7c0d2c9933a7b3d6e04 (diff) | |
download | rtmux-dc2af8347b5072a827d564623af8d7f10261e7f0.tar.gz rtmux-dc2af8347b5072a827d564623af8d7f10261e7f0.tar.bz2 rtmux-dc2af8347b5072a827d564623af8d7f10261e7f0.zip |
New code doesn't build on old versions of OS X so only support 10.7 and
later. Reported by Jared Scheel and tested by Chris Johnsen.
Diffstat (limited to 'osdep-darwin.c')
-rw-r--r-- | osdep-darwin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep-darwin.c b/osdep-darwin.c index 23de9d52..3b5e9d3c 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -18,6 +18,7 @@ #include <sys/types.h> +#include <Availability.h> #include <event.h> #include <libproc.h> #include <stdlib.h> @@ -33,6 +34,7 @@ struct event_base *osdep_event_init(void); char * osdep_get_name(int fd, unused char *tty) { +#ifdef __MAC_10_7 struct proc_bsdshortinfo bsdinfo; pid_t pgrp; int ret; @@ -44,6 +46,7 @@ osdep_get_name(int fd, unused char *tty) &bsdinfo, sizeof bsdinfo); if (ret == sizeof bsdinfo && *bsdinfo.pbsi_comm != '\0') return (strdup(bsdinfo.pbsi_comm)); +#endif return (NULL); } |