--- pty.c.orig +++ pty.c @@ -30,6 +30,9 @@ #include #include #include +#ifdef __APPLE__ +#include +#endif #include "config.h" #include "screen.h" --- screen.c.orig +++ screen.c @@ -47,6 +47,9 @@ #include #include #include +#ifdef __APPLE__ +#include +#endif #if defined(__sun) # include --- socket.c.orig +++ socket.c @@ -1419,7 +1419,9 @@ char *p; int pid; int noshowwin; +#ifdef UTMPOK struct win *wi; +#endif ASSERT(display); pid = D_userpid;