summaryrefslogtreecommitdiff
path: root/dev-cpp/clucene/files
diff options
context:
space:
mode:
authorDenis Pronin <dannftk@yandex.ru>2020-02-21 15:55:44 +0300
committerMichał Górny <mgorny@gentoo.org>2020-03-02 10:09:09 +0100
commit8be274041e9b36d5a4ab436ba8d48cb12d981a34 (patch)
tree569690de6bd2063e9ff4adcbd7814a821ac75bfe /dev-cpp/clucene/files
parent9aba72a89b3d40e1ce521282a21db1c5dad0b7d0 (diff)
downloadgentoo-8be274041e9b36d5a4ab436ba8d48cb12d981a34.tar.gz
gentoo-8be274041e9b36d5a4ab436ba8d48cb12d981a34.tar.bz2
gentoo-8be274041e9b36d5a4ab436ba8d48cb12d981a34.zip
dev-cpp/clucene: fix building w/ clang and libc++
Signed-off-by: Denis Pronin <dannftk@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/14730 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-cpp/clucene/files')
-rw-r--r--dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch b/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch
new file mode 100644
index 000000000000..d4c702bf217b
--- /dev/null
+++ b/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch
@@ -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)
+