If you compile screen on Mac OS X and encounter the following error: pty.c:38:26: error: sys/stropts.h: No such file or directory then try applying the included screen pty.c patch for this problem as follows: cd /path/to/screen-build-tree patch -p0