$OpenBSD: patch-src_preferences_cpp,v 1.2 2010/10/12 20:33:18 jasper Exp $
--- src/preferences.cpp.orig	Thu Apr  8 11:09:19 2010
+++ src/preferences.cpp	Thu Apr  8 11:09:33 2010
@@ -32,6 +32,8 @@
 
 #include <sys/stat.h> // for setting the permissions of the preferences file
 
+#include <unistd.h>
+
 static lg::log_domain log_filesystem("filesystem");
 #define ERR_FS LOG_STREAM(err, log_filesystem)
 
