diff options
author | schmonz <schmonz@pkgsrc.org> | 2013-04-07 04:00:39 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2013-04-07 04:00:39 +0000 |
commit | d1df19989c218f6bf13617dd8ed847426389682b (patch) | |
tree | ab9b2ff7a5bc713e3c549d34ed6cf1a9e417a3e9 /misc/tmux/patches | |
parent | fa4a4ac3d1ff957ceae77400ded727c6f4feaef6 (diff) | |
download | pkgsrc-d1df19989c218f6bf13617dd8ed847426389682b.tar.gz |
Fix build on OS X 10.6.8, from <https://trac.macports.org/ticket/38588>.
Diffstat (limited to 'misc/tmux/patches')
-rw-r--r-- | misc/tmux/patches/patch-osdep-darwin.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/misc/tmux/patches/patch-osdep-darwin.c b/misc/tmux/patches/patch-osdep-darwin.c new file mode 100644 index 00000000000..4b8dd5facbd --- /dev/null +++ b/misc/tmux/patches/patch-osdep-darwin.c @@ -0,0 +1,28 @@ +$NetBSD: patch-osdep-darwin.c,v 1.1 2013/04/07 04:00:40 schmonz Exp $ + +Fix build on OS X 10.6.8, from <https://trac.macports.org/ticket/38588>. + +--- osdep-darwin.c.orig 2013-02-24 12:42:49.000000000 +0000 ++++ osdep-darwin.c +@@ -33,17 +33,17 @@ struct event_base *osdep_event_init(void + char * + osdep_get_name(int fd, unused char *tty) + { +- struct proc_bsdshortinfo bsdinfo; ++ struct proc_bsdinfo bsdinfo; + pid_t pgrp; + int ret; + + if ((pgrp = tcgetpgrp(fd)) == -1) + return (NULL); + +- ret = proc_pidinfo(pgrp, PROC_PIDT_SHORTBSDINFO, 0, ++ ret = proc_pidinfo(pgrp, PROC_PIDTBSDINFO, 0, + &bsdinfo, sizeof bsdinfo); +- if (ret == sizeof bsdinfo && *bsdinfo.pbsi_comm != '\0') +- return (strdup(bsdinfo.pbsi_comm)); ++ if (ret == sizeof bsdinfo && *bsdinfo.pbi_comm != '\0') ++ return (strdup(bsdinfo.pbi_comm)); + return (NULL); + } + |