summaryrefslogtreecommitdiff
path: root/misc/kcd/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kcd/files')
-rw-r--r--misc/kcd/files/patch-dirtree.cc13
-rw-r--r--misc/kcd/files/patch-gentree.cc13
-rw-r--r--misc/kcd/files/patch-scandir.cc13
3 files changed, 38 insertions, 1 deletions
diff --git a/misc/kcd/files/patch-dirtree.cc b/misc/kcd/files/patch-dirtree.cc
index 740126bc9bb5..48fe15fc68ca 100644
--- a/misc/kcd/files/patch-dirtree.cc
+++ b/misc/kcd/files/patch-dirtree.cc
@@ -1,6 +1,17 @@
--- dirtree.cc.orig 2009-02-18 13:01:05.000000000 +0100
+++ dirtree.cc 2013-05-27 18:11:32.183060000 +0200
-@@ -170,12 +170,12 @@
+@@ -25,6 +25,10 @@
+ #include "cstrlib.h"
+ #include "gentree.h"
+
++#ifdef HAVE_UNISTD_H
++# include <unistd.h>
++#endif
++
+ sptr_list<DirectoryEntry> dirTree;
+
+ const char uniqueTag[] = "<KCDID#9>"; // File ID
+@@ -170,12 +174,12 @@
ReadSaveFile(dirTree, filegz);
}
catch(ErrorBadFileFormat &) {
diff --git a/misc/kcd/files/patch-gentree.cc b/misc/kcd/files/patch-gentree.cc
new file mode 100644
index 000000000000..6bc4ad877ddc
--- /dev/null
+++ b/misc/kcd/files/patch-gentree.cc
@@ -0,0 +1,13 @@
+--- gentree.cc.orig
++++ gentree.cc
+@@ -29,6 +29,10 @@
+ #include "cstrlib.h"
+ #include "scandir.h"
+
++#ifdef HAVE_UNISTD_H
++# include <unistd.h>
++#endif
++
+ //#define DUMP_HTML
+ #ifdef DUMP_HTML
+ # include <fcntl.h>
diff --git a/misc/kcd/files/patch-scandir.cc b/misc/kcd/files/patch-scandir.cc
new file mode 100644
index 000000000000..5fcf718dddc9
--- /dev/null
+++ b/misc/kcd/files/patch-scandir.cc
@@ -0,0 +1,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
+ *************************************************************************/