diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2014-01-14 20:23:34 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2014-01-14 20:23:34 +0000 |
commit | c2533ffdba8451e75942b77ff93592aa8e3fa50f (patch) | |
tree | 35c41dbe30386faae89039096566e47a5c07aa04 /misc/kcd/files/patch-dirtree.cc | |
parent | - Fix build with clang (diff) |
- Fix build with clang
- Stage support
PR: ports/185692
Submitted by: KATO Tsuguru
Notes
Notes:
svn path=/head/; revision=339712
Diffstat (limited to 'misc/kcd/files/patch-dirtree.cc')
-rw-r--r-- | misc/kcd/files/patch-dirtree.cc | 13 |
1 files changed, 12 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 &) { |