Commit 8786ac28 authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

libmemcached: fix build with gcc 7.x

This commit adds a patch to the libmemcached package that fixes the
build with gcc 7.x. Since libmemcached is barely maintained upstream,
the patch comes from the Fedora packages.


Signed-off-by: default avatarThomas Petazzoni <>
parent 9ac88f31
Fix pointer comparaison
opt_servers is a pointer, not a boolean, so testing against false to
know if the pointer is NULL no longer works with the more strict gcc
7.x checks.
[Taken from]
Signed-off-by: Thomas Petazzoni <>
diff -up ./clients/ ./clients/
--- ./clients/ 2017-02-12 10:12:59.615209225 +0100
+++ ./clients/ 2017-02-12 10:13:39.998382783 +0100
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
options_parse(argc, argv);
- if (opt_servers == false)
+ if (!opt_servers)
char *temp;
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
opt_servers= strdup(temp);
- if (opt_servers == false)
+ if (!opt_servers)
std::cerr << "No Servers provided" << std::endl;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment