$NetBSD: patch-af,v 1.7 2015/03/10 05:16:28 mef Exp $

--- src/preferences.cpp.orig	2015-01-24 06:21:14.000000000 +0900
+++ src/preferences.cpp	2015-03-10 00:48:59.000000000 +0900
@@ -32,6 +32,7 @@
 #include "util.hpp"
 
 #include <sys/stat.h> // for setting the permissions of the preferences file
+#include <unistd.h>
 #include <boost/concept_check.hpp>
 
 static lg::log_domain log_config("config");
