--- examples/read/read.cpp.orig	2013-12-07 15:44:13.000000000 +0100
+++ examples/read/read.cpp	2013-12-07 15:44:26.000000000 +0100
@@ -56,6 +56,7 @@
 #  define PORT_GETCWD _getcwd
 # endif
 #else
+#include <unistd.h>
 # define PORT_PATH_MAX PATH_MAX
 # define DIR_SEPERATOR '/'
 # define uriFilenameToUriString uriUnixFilenameToUriStringA