Skip to content

Commit

Permalink
dev-cpp/clucene: fix building w/ clang and libc++
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Pronin <[email protected]>
Closes: gentoo#14730
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
dpronin authored and mgorny committed Mar 2, 2020
1 parent 9aba72a commit 8be2740
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PATCHES=(
"${FILESDIR}/${P}-contrib.patch"
"${FILESDIR}/${P}-pkgconfig.patch"
"${FILESDIR}/${P}-gcc6.patch"
"${FILESDIR}/${P}-gmtime.patch"
)

src_prepare() {
Expand Down
12 changes: 12 additions & 0 deletions dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -Naur clucene-core-2.3.3.4/src/core/CLucene/document/DateTools.cpp clucene-core-2.3.3.4.new/src/core/CLucene/document/DateTools.cpp
--- clucene-core-2.3.3.4/src/core/CLucene/document/DateTools.cpp 2011-03-17 03:21:07.000000000 +0300
+++ clucene-core-2.3.3.4.new/src/core/CLucene/document/DateTools.cpp 2020-02-21 15:20:17.382575302 +0300
@@ -9,6 +9,8 @@
#include "DateTools.h"
#include "CLucene/util/Misc.h"

+#include <ctime>
+
CL_NS_USE(util)
CL_NS_DEF(document)

0 comments on commit 8be2740

Please sign in to comment.