freebsd-ports/databases/libmemcached/files/patch-bug1245562
Matthew Seaman 58480d53f2 Fix the build of libmemcached: add -lthr to the libraries
plus modifications to the autoconf files.

PR:		219168
Submitted by:	m.tsatsenko@gmail.com (maintainer)
Reported by:	000.fbsd@quip.cz
Approved by:	m.tsatsenko@gmail.com (maintainer)
2017-06-09 16:45:34 +00:00

34 lines
775 B
Text

--- clients/memflush.cc.orig 2014-02-09 11:52:42 UTC
+++ clients/memflush.cc
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
{
options_parse(argc, argv);
- if (opt_servers == false)
+ if (opt_servers == NULL)
{
char *temp;
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
opt_servers= strdup(temp);
}
- if (opt_servers == false)
+ if (opt_servers == NULL)
{
std::cerr << "No Servers provided" << std::endl;
exit(EXIT_FAILURE);
--- libmemcached-1.0/memcached.h.orig 2014-02-09 11:52:42 UTC
+++ libmemcached-1.0/memcached.h
@@ -43,7 +43,11 @@
#endif
#ifdef __cplusplus
+#ifdef _LIBCPP_VERSION
# include <cinttypes>
+#else
+# include <tr1/cinttypes>
+#endif
# include <cstddef>
# include <cstdlib>
#else