aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmemcached/fix-ppc64le-ptr-check.patch
diff options
context:
space:
mode:
authorMike Sullivan <mksully22@gmail.com>2018-11-19 17:32:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-20 13:56:26 +0000
commit6d7e800e8f8d0b033d99c5cc1f00dbc7fa1592ee (patch)
tree954585bbde0c2f88d38056aefa5c62aa1a832006 /main/libmemcached/fix-ppc64le-ptr-check.patch
parent2e4139498d33005f4d9c56db360024b11ae5a42e (diff)
downloadaports-6d7e800e8f8d0b033d99c5cc1f00dbc7fa1592ee.tar.gz
aports-6d7e800e8f8d0b033d99c5cc1f00dbc7fa1592ee.tar.bz2
aports-6d7e800e8f8d0b033d99c5cc1f00dbc7fa1592ee.tar.xz
main/libmemcached: fix ppc64le build break due to null pointer comparison
fixes compile error: clients/memflush.cc:42:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (opt_servers == false)
Diffstat (limited to 'main/libmemcached/fix-ppc64le-ptr-check.patch')
-rw-r--r--main/libmemcached/fix-ppc64le-ptr-check.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/libmemcached/fix-ppc64le-ptr-check.patch b/main/libmemcached/fix-ppc64le-ptr-check.patch
new file mode 100644
index 0000000000..6644c8353e
--- /dev/null
+++ b/main/libmemcached/fix-ppc64le-ptr-check.patch
@@ -0,0 +1,20 @@
+--- a/clients/memflush.cc
++++ b/clients/memflush.cc
+@@ -39,7 +39,7 @@
+ {
+ options_parse(argc, argv);
+
+- if (opt_servers == false)
++ if (opt_servers == NULL)
+ {
+ char *temp;
+
+@@ -48,7 +48,7 @@
+ opt_servers= strdup(temp);
+ }
+
+- if (opt_servers == false)
++ if (opt_servers == NULL)
+ {
+ std::cerr << "No Servers provided" << std::endl;
+ exit(EXIT_FAILURE);