mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Add a small dance to daemon() to reattach tmux to the user's namespace (which
allows access to the clipboard) on OS X 10.10 and above. Chis Johnsen has done much work on and documentation of this issue, the code is copied (with some tweaks) from his reattach-to-user-namespace at: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard Tested by Enrico Ghirardi. Will see how this goes, if it breaks stuff it might go away again.
This commit is contained in:
@ -569,8 +569,15 @@ case "$host_os" in
|
||||
;;
|
||||
*darwin*)
|
||||
AC_MSG_RESULT(darwin)
|
||||
AC_DEFINE(BROKEN_CMSG_FIRSTHDR)
|
||||
PLATFORM=darwin
|
||||
#
|
||||
# OS X CMSG_FIRSTHDR is broken, so redefine it with a working
|
||||
# one. daemon works but has some stupid side effects, so use
|
||||
# our internal version which has a workaround.
|
||||
#
|
||||
AC_DEFINE(BROKEN_CMSG_FIRSTHDR)
|
||||
AC_LIBOBJ(daemon)
|
||||
AC_LIBOBJ(daemon-darwin)
|
||||
;;
|
||||
*dragonfly*)
|
||||
AC_MSG_RESULT(dragonfly)
|
||||
|
Reference in New Issue
Block a user