Last active
December 15, 2015 16:29
-
-
Save ichizok/5289677 to your computer and use it in GitHub Desktop.
TMUX 1.8: fixed compile error on OS X 10.6.8 and earlier (>= 10.5)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/osdep-darwin.c b/osdep-darwin.c | |
index 23de9d5..1e5cf0d 100644 | |
--- a/osdep-darwin.c | |
+++ b/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); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment