summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 471b9dde5..ae2763fd9 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -19,6 +19,9 @@
#ifdef WIN32
#include <windows.h>
#else
+#ifdef OPENBSD
+#include <unistd.h>
+#endif
#include <pwd.h>
#endif
#include <sys/stat.h>