Index: src/frontend/mosh-client.cc
--- src/frontend/mosh-client.cc.orig	2012-05-26 02:32:04.000000000 +0200
+++ src/frontend/mosh-client.cc	2012-07-29 09:46:38.000000000 +0200
@@ -29,6 +29,7 @@
 /* these need to be included last because of conflicting defines */
 #include <curses.h>
 #include <term.h>
+#include <unistd.h>
 
 void usage( const char *argv0 ) {
   fprintf( stderr, "mosh-client (%s)\n", PACKAGE_STRING );
