chjj/tty.js — pull request #4 by jrozner (2012-02-08 06:05:34+00:00)
Title: Fix Build Bug

On OS X the forkpty module fails to build giving the error that ioctl() is not defined. On OS X ioctl is defined in sys/ioctl. I added a conditional include to ensure that it gets added.

NOTE: Don't have a freebsd (or other bsd) box in front of me, but I would assume they it would require the same header to be included.