[105099] trunk/dports/sysutils/tmux

yeled at macports.org yeled at macports.org
Wed Apr 10 04:19:52 PDT 2013


Revision: 105099
          https://trac.macports.org/changeset/105099
Author:   yeled at macports.org
Date:     2013-04-10 04:19:52 -0700 (Wed, 10 Apr 2013)
Log Message:
-----------
attempt to fix #38588 with a jmr@ patch

Modified Paths:
--------------
    trunk/dports/sysutils/tmux/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/tmux/files/osdep-darwin.c.diff

Modified: trunk/dports/sysutils/tmux/Portfile
===================================================================
--- trunk/dports/sysutils/tmux/Portfile	2013-04-10 07:18:10 UTC (rev 105098)
+++ trunk/dports/sysutils/tmux/Portfile	2013-04-10 11:19:52 UTC (rev 105099)
@@ -4,6 +4,7 @@
 
 name            tmux
 version         1.8
+revision        1
 categories      sysutils
 maintainers     yeled
 description     terminal multiplexer
@@ -23,7 +24,8 @@
 depends_lib     port:libevent port:ncurses
 
 patchfiles      tmux.1.diff \
-                tmux.h.diff
+                tmux.h.diff \
+                osdep-darwin.c.diff
 
 configure.env "LIBS=-lresolv"
 

Added: trunk/dports/sysutils/tmux/files/osdep-darwin.c.diff
===================================================================
--- trunk/dports/sysutils/tmux/files/osdep-darwin.c.diff	                        (rev 0)
+++ trunk/dports/sysutils/tmux/files/osdep-darwin.c.diff	2013-04-10 11:19:52 UTC (rev 105099)
@@ -0,0 +1,24 @@
+--- osdep-darwin.c.orig	2013-02-24 23:42:49.000000000 +1100
++++ osdep-darwin.c	2013-04-01 03:11:47.000000000 +1100
+@@ -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);
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130410/2368a34a/attachment.html>


More information about the macports-changes mailing list