Oh, nice Chris. I can definitely give it a try. This looks like it would be
better to go into tmux.
-Jared
On Tue, Apr 2, 2013 at 2:33 AM, Chris Johnsen wrote:
> The MacPorts project has come up with a different approach to fixing
> the 1.8 build on OS X 10.6: use proc_bsdinfo instead of
> proc_
t_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);
> }
>
>
>
This commit results in a failure to compile on 10.8.6:
http://sourceforge.net/p/tmux/tmux-code/ci/7360ff4496bfd159ac5935a18de675f067c375db/
Error:
osdep-darwin.c: In function ‘osdep_get_name’:
osdep-darwin.c:36: error: storage size of ‘bsdinfo’ isn’t known
osdep-darwin.c:43: error: ‘PROC_PIDT_SHOR