$NetBSD$

--- examples/wavefile.cpp.orig	2006-07-18 19:07:25.000000000 +0000
+++ examples/wavefile.cpp
@@ -9,6 +9,8 @@
 #include "protocol.h"
 #ifdef WIN32
 #include "io.h"
+#else
+#include <unistd.h>
 #endif
 #include <fcntl.h>
 
