aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2013-10-02 05:27:49 +0800
committerJohn Marino <marino@FreeBSD.org>2013-10-02 05:27:49 +0800
commit3c6fcd605fb1f48a958b3f5928434a21b5b58fa8 (patch)
tree6a91ba78797aedd5301b6f4392a19238b2437ab9 /devel
parent7ab7a478aa60fd2816c510ff0c24af185f297440 (diff)
downloadfreebsd-ports-gnome-3c6fcd605fb1f48a958b3f5928434a21b5b58fa8.tar.gz
freebsd-ports-gnome-3c6fcd605fb1f48a958b3f5928434a21b5b58fa8.tar.zst
freebsd-ports-gnome-3c6fcd605fb1f48a958b3f5928434a21b5b58fa8.zip
devel/libopkele: add <unistd.h> and other C++ fixes for modern compilers
Approved by: portmgr (bapt, implicit)
Diffstat (limited to 'devel')
-rw-r--r--devel/libopkele/files/patch-include_opkele_discovery.h11
-rw-r--r--devel/libopkele/files/patch-test_idiscover.cc10
-rw-r--r--devel/libopkele/files/patch-test_test.cc9
3 files changed, 30 insertions, 0 deletions
diff --git a/devel/libopkele/files/patch-include_opkele_discovery.h b/devel/libopkele/files/patch-include_opkele_discovery.h
new file mode 100644
index 000000000000..03af6a81da90
--- /dev/null
+++ b/devel/libopkele/files/patch-include_opkele_discovery.h
@@ -0,0 +1,11 @@
+--- include/opkele/discovery.h.orig 2008-06-25 20:50:26.000000000 +0000
++++ include/opkele/discovery.h
+@@ -21,7 +21,7 @@ namespace opkele {
+ 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 {
diff --git a/devel/libopkele/files/patch-test_idiscover.cc b/devel/libopkele/files/patch-test_idiscover.cc
new file mode 100644
index 000000000000..713881ad3831
--- /dev/null
+++ b/devel/libopkele/files/patch-test_idiscover.cc
@@ -0,0 +1,10 @@
+--- test/idiscover.cc.orig 2008-06-25 20:50:26.000000000 +0000
++++ test/idiscover.cc
+@@ -2,6 +2,7 @@
+ #include <stdexcept>
+ #include <iterator>
+ #include <algorithm>
++#include <unistd.h>
+ using namespace std;
+ #include <opkele/exception.h>
+ #include <opkele/discovery.h>
diff --git a/devel/libopkele/files/patch-test_test.cc b/devel/libopkele/files/patch-test_test.cc
new file mode 100644
index 000000000000..d000ebc907c4
--- /dev/null
+++ b/devel/libopkele/files/patch-test_test.cc
@@ -0,0 +1,9 @@
+--- test/test.cc.orig 2009-12-12 20:22:34.000000000 +0000
++++ test/test.cc
+@@ -1,5 +1,6 @@
+ #include <iostream>
+ #include <stdexcept>
++#include <unistd.h>
+ using namespace std;
+ #include <opkele/exception.h>
+ #include <opkele/util.h>