File: bug718187-ftbfs-hurd.patch

package info (click to toggle)
clucene-core 2.3.3.4%2Bdfsg-1.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 7,944 kB
  • sloc: cpp: 70,728; ansic: 39,655; sh: 338; makefile: 17; php: 5
file content (40 lines) | stat: -rw-r--r-- 1,343 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: FTBFS on Hurd
Author: Pino Toscano <pino@debian.org>
Bug: http://sourceforge.net/p/clucene/bugs/217/
Bug-Debian: http://bugs.debian.org/718187

---
 src/shared/CLucene/util/Misc.cpp |    2 ++
 src/shared/CLucene/util/Misc.h   |    2 ++
 2 files changed, 4 insertions(+)

--- a/src/shared/CLucene/util/Misc.cpp
+++ b/src/shared/CLucene/util/Misc.cpp
@@ -466,6 +466,7 @@ bool Misc::listFiles(const char* directo
 std::string Misc::toString(const bool value){
   return value ? "true" : "false";
 }
+#ifndef __GNU__
 std::string Misc::toString(_LUCENE_THREADID_TYPE value){
   static int32_t nextindex = 0;
   static std::map<_LUCENE_THREADID_TYPE, int32_t> ids;
@@ -474,6 +475,7 @@ std::string Misc::toString(_LUCENE_THREA
   }
   return toString(ids[value]);
 }
+#endif
 std::string Misc::toString(const int32_t value){
   char buf[20];
   TCHAR tbuf[20];
--- a/src/shared/CLucene/util/Misc.h
+++ b/src/shared/CLucene/util/Misc.h
@@ -67,7 +67,9 @@ CL_NS_DEF(util)
 
   static std::string toString(const int32_t value);
   static std::string toString(const int64_t value);
+#ifndef __GNU__
   static std::string toString(const _LUCENE_THREADID_TYPE value);
+#endif
   static std::string toString(const bool value);
   static std::string toString(const float_t value);
   static std::string toString(const TCHAR* s, int32_t len=-1);