summaryrefslogtreecommitdiff
path: root/misc/kcd/files/patch-scandir.cc
blob: 5fcf718dddc9d8f6a099ad51ff922d280ab17aef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- scandir.cc.orig
+++ scandir.cc
@@ -32,6 +32,10 @@
 #include "cstrlib.h"
 #include "dirtree.h"
 
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
 /*************************************************************************
 	Log scan results to command line output
 *************************************************************************/