From c2533ffdba8451e75942b77ff93592aa8e3fa50f Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Tue, 14 Jan 2014 20:23:34 +0000 Subject: - Fix build with clang - Stage support PR: ports/185692 Submitted by: KATO Tsuguru --- misc/kcd/files/patch-dirtree.cc | 13 ++++++++++++- misc/kcd/files/patch-gentree.cc | 13 +++++++++++++ misc/kcd/files/patch-scandir.cc | 13 +++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 misc/kcd/files/patch-gentree.cc create mode 100644 misc/kcd/files/patch-scandir.cc (limited to 'misc/kcd/files') 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 ++#endif ++ + sptr_list dirTree; + + const char uniqueTag[] = ""; // 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 ++#endif ++ + //#define DUMP_HTML + #ifdef DUMP_HTML + # include 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 ++#endif ++ + /************************************************************************* + Log scan results to command line output + *************************************************************************/ -- cgit v1.2.3