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 | |
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')
-rw-r--r-- | misc/tmux/distinfo | 3 | ||||
-rw-r--r-- | misc/tmux/patches/patch-osdep-darwin.c | 28 |
2 files changed, 30 insertions, 1 deletions
diff --git a/misc/tmux/distinfo b/misc/tmux/distinfo index 38ec785c7c9..46db378be80 100644 --- a/misc/tmux/distinfo +++ b/misc/tmux/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.20 2013/04/02 10:59:50 fhajny Exp $ +$NetBSD: distinfo,v 1.21 2013/04/07 04:00:39 schmonz Exp $ SHA1 (tmux-1.8.tar.gz) = 08677ea914e1973ce605b0008919717184cbd033 RMD160 (tmux-1.8.tar.gz) = b267ab54f6f55292fa1fa9cd0e892bfd5fd27cfb Size (tmux-1.8.tar.gz) = 417537 bytes SHA1 (patch-client.c) = e37053d721bd26d31783af883a7d1f6870095325 +SHA1 (patch-osdep-darwin.c) = 259230c4437364fc3c956f2ab1429316e697d228 SHA1 (patch-server-client.c) = 6c8dd82e2dc1965b8c8f9a8808a262366c80d6b4 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); + } + |