libmemcached: fix build failure #10780

Add patch for that compares pointer to NULL instead of false.
This commit is contained in:
Peter Bui 2018-01-13 14:58:24 -05:00 committed by Leаh Neukirchen
parent 673c7e7a29
commit 39c5804da4
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- ./clients/memflush.cc
+++ ./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);

View File

@ -1,7 +1,7 @@
# Template build file for 'libmemcached'
pkgname=libmemcached
version=1.0.18
revision=2
revision=3
build_style=gnu-configure
configure_args="--prefix=/usr"
short_desc="C/C++ library to memcached"