--- tntnet-2.2.1.orig/framework/common/gnutls.cpp	2013-12-26 15:08:34.000000000 +0100
+++ tntnet-2.2.1/framework/common/gnutls.cpp	2014-05-20 06:44:01.000000000 +0200
@@ -35,6 +35,7 @@
 #include <sys/poll.h>
 #include <errno.h>
 #include <cxxtools/ioerror.h>
+#include <unistd.h>
 
 log_define("tntnet.ssl")
 
