Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created October 12, 2014 16:51
Show Gist options
  • Save saitoha/223cb3b5c4c74e830166 to your computer and use it in GitHub Desktop.
Save saitoha/223cb3b5c4c74e830166 to your computer and use it in GitHub Desktop.
putty: fix for pterm on OSX 10.9
--- putty-0.63/unix/uxpty.c 2013-07-21 16:40:28.000000000 +0900
+++ putty-0.63/unix/uxpty.c 2014-10-13 01:49:46.000000000 +0900
@@ -373,7 +373,9 @@
strncpy(pty->name, ptsname(pty->master_fd), FILENAME_MAX-1);
#endif
+#if !defined(__OSX__)
nonblock(pty->master_fd);
+#endif
if (!ptys_by_fd)
ptys_by_fd = newtree234(pty_compare_by_fd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment