libmemcached: fix build failure #10780
Add patch for that compares pointer to NULL instead of false.
This commit is contained in:
parent
673c7e7a29
commit
39c5804da4
|
@ -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);
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue