aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-09-01 09:42:57 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-09-01 09:42:57 +0000
commitdf2678cd39b0436c1923a28baa5e5e4b4917401b (patch)
treea9b5a9f83c856cb93c0cbb6b1614a8daeb4be1b6 /devel
parentfd838aac64675217cd7475aed45b76bb0d84c2a9 (diff)
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/librolegen/files/patch-src_rolegen.cpp.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/librolegen/files/patch-src_rolegen.cpp.in b/devel/librolegen/files/patch-src_rolegen.cpp.in
new file mode 100644
index 000000000000..c35c9b2099da
--- /dev/null
+++ b/devel/librolegen/files/patch-src_rolegen.cpp.in
@@ -0,0 +1,15 @@
+Configured/src/rolegen.cpp:54:10: error: no viable conversion from returned value of type 'std::__1::ifstream' (aka 'basic_ifstream<char>') to function return type 'bool'
+ return ifile;
+ ^~~~~
+
+--- src/rolegen.cpp.in.orig 2018-09-01 02:53:02 UTC
++++ src/rolegen.cpp.in
+@@ -51,7 +51,7 @@ static bool isPrivilegedAppId(const char *appId)
+ static bool fexists(string filename)
+ {
+ ifstream ifile(filename.c_str());
+- return ifile;
++ return ifile.is_open();
+ }
+
+ static void checkDirStructure()