~ubuntu-branches/ubuntu/saucy/clucene-core/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/bug718187-ftbfs-hurd.patch

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2013-07-29 08:31:38 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130729083138-hiy0qx1pga1y6jh1
Tags: 2.3.3.4-4
Add bug718187-ftbfs-hurd.patch to fix build failure on HURD.
Thanks to Pino Toscano. (Closes: #718187)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: FTBFS on Hurd
 
2
Author: Pino Toscano <pino@debian.org>
 
3
Bug: http://sourceforge.net/p/clucene/bugs/217/
 
4
Bug-Debian: http://bugs.debian.org/718187
 
5
 
 
6
---
 
7
 src/shared/CLucene/util/Misc.cpp |    2 ++
 
8
 src/shared/CLucene/util/Misc.h   |    2 ++
 
9
 2 files changed, 4 insertions(+)
 
10
 
 
11
--- a/src/shared/CLucene/util/Misc.cpp
 
12
+++ b/src/shared/CLucene/util/Misc.cpp
 
13
@@ -466,6 +466,7 @@ bool Misc::listFiles(const char* directo
 
14
 std::string Misc::toString(const bool value){
 
15
   return value ? "true" : "false";
 
16
 }
 
17
+#ifndef __GNU__
 
18
 std::string Misc::toString(_LUCENE_THREADID_TYPE value){
 
19
   static int32_t nextindex = 0;
 
20
   static std::map<_LUCENE_THREADID_TYPE, int32_t> ids;
 
21
@@ -474,6 +475,7 @@ std::string Misc::toString(_LUCENE_THREA
 
22
   }
 
23
   return toString(ids[value]);
 
24
 }
 
25
+#endif
 
26
 std::string Misc::toString(const int32_t value){
 
27
   char buf[20];
 
28
   TCHAR tbuf[20];
 
29
--- a/src/shared/CLucene/util/Misc.h
 
30
+++ b/src/shared/CLucene/util/Misc.h
 
31
@@ -67,7 +67,9 @@ CL_NS_DEF(util)
 
32
 
 
33
   static std::string toString(const int32_t value);
 
34
   static std::string toString(const int64_t value);
 
35
+#ifndef __GNU__
 
36
   static std::string toString(const _LUCENE_THREADID_TYPE value);
 
37
+#endif
 
38
   static std::string toString(const bool value);
 
39
   static std::string toString(const float_t value);
 
40
   static std::string toString(const TCHAR* s, int32_t len=-1);