File: fix-ftbfs-gcc4.7.diff

package info (click to toggle)
libopkele 2.0.4%2Bgit20140305.9651b55-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 584 kB
  • sloc: cpp: 4,885; makefile: 131; xml: 82; ansic: 70; sql: 55; sh: 13
file content (31 lines) | stat: -rw-r--r-- 1,286 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
Index: libopkele-2.0.4/include/opkele/discovery.h
===================================================================
--- libopkele-2.0.4.orig/include/opkele/discovery.h	2012-04-17 06:21:07.763922348 +0000
+++ libopkele-2.0.4/include/opkele/discovery.h	2012-04-17 06:21:08.000000000 +0000
@@ -21,7 +21,7 @@
 		public:
 
 		    inline _DT& add(long priority,const _DT& d) {
-			return insert(typename map_type::value_type(priority,d))->second;
+			return this->insert(typename map_type::value_type(priority,d))->second;
 		    }
 
 		    bool has_value(const _DT& d) const {
Index: libopkele-2.0.4/test/test.cc
===================================================================
--- libopkele-2.0.4.orig/test/test.cc	2009-12-12 20:22:34.000000000 +0000
+++ libopkele-2.0.4/test/test.cc	2012-04-17 06:22:06.811920884 +0000
@@ -1,3 +1,4 @@
+#include <unistd.h>
 #include <iostream>
 #include <stdexcept>
 using namespace std;
Index: libopkele-2.0.4/test/idiscover.cc
===================================================================
--- libopkele-2.0.4.orig/test/idiscover.cc	2008-06-25 20:50:26.000000000 +0000
+++ libopkele-2.0.4/test/idiscover.cc	2012-04-17 06:22:46.395919914 +0000
@@ -1,3 +1,4 @@
+#include <unistd.h>
 #include <iostream>
 #include <stdexcept>
 #include <iterator>