pkgsrc/devel/libmemcached/patches/patch-libmemcached_byteorder.cc

16 lines
384 B
C++
Raw Normal View History

$NetBSD: patch-libmemcached_byteorder.cc,v 1.2 2014/04/01 13:51:56 fhajny Exp $
1.0.17 Tue Apr 2 14:02:01 HST 2013 * Remove c++ namespace that was being exposed (the API should be plug compatible).. * Fix cases where --servers wasn't behaving the same in all clients. 1.0.16 Thu Jan 31 19:14:32 EST 2013 * Added support to do two part shutdown of socket. * Fixes for Fedora 18. * Fix for binary memcached_touch() 1.0.15 Mon Dec 17 07:25:44 EST 2012 * Added support for Murmur3 (HASHKIT_HASH_MURMUR3) * Portability fixes. 1.0.14 Wed Nov 14 04:56:25 EST 2012 * CLIENT_ERROR fixed to not be treated as a fatal error. * Compiler fixes for older Ubuntu releases. 1.0.13 Fri Oct 19 00:09:28 EDT 2012 * Fix bug that caused version string to not be exported correctly. 1.0.12 Tue Oct 9 03:30:20 EDT 2012 * Added memcached_result_take_value(). * Added ax_libmemcached.m4 1.0.11 Sun Sep 16 20:32:13 EDT 2012 * Removed custom version of memcached. * Updated hardening rules. * Fixed a case where the return error from a socket connection differred from that of a TCP/IP socket. 1.0.10 Sun Jul 29 21:50:15 PDT 2012 * --disable-assert has been removed from configure, and --enable-assert has been added in its place. * Compiling fixes for Clang on OSX Mountain Lion. 1.0.9 Wed Jul 4 22:46:19 EDT 2012 * Faster close on socket. * Instance allocation is now seperated from server interface. This should allow for a better preservation of ABI compliance from now on. * Fix close on exec bug. * Numerous other bug fixes. 1.0.8 Tue May 22 15:06:04 EDT 2012 * Added support for setting options via ENV variable LIBMEMCACHED * Fix corner case on last used result. 1.0.7 Sat Apr 28 00:48:29 PDT 2012 * Add API call for exist calls. * Update all license files to be BSD. 1.0.6 Sat Apr 7 18:26:49 PDT 2012 * Fixes for gcc 4.7, lp:961812 * Fix for restart issue that happens under testing. * Fix for lp:962815. * Support for transparent AES encryption. 1.0.5 Tue Mar 13 22:56:47 PDT 2012 * Fixes for OSX. * Version is now parsed directly in the parser, which makes buffered operations now work with it.. * memstat has been extended so that it can be used to find the version of the server. * Update documentation. * Fixes for compile issues on Debian and Ubuntu 1.0.4 Thu Jan 26 22:33:54 PST 2012 * Fix for memcached_dump(). * Additional testing for memcached_stat_execute().
2013-09-12 16:20:56 +02:00
Need ntohll/htonll defined.
--- libmemcached/byteorder.cc.orig 2014-02-09 11:52:42.000000000 +0000
1.0.17 Tue Apr 2 14:02:01 HST 2013 * Remove c++ namespace that was being exposed (the API should be plug compatible).. * Fix cases where --servers wasn't behaving the same in all clients. 1.0.16 Thu Jan 31 19:14:32 EST 2013 * Added support to do two part shutdown of socket. * Fixes for Fedora 18. * Fix for binary memcached_touch() 1.0.15 Mon Dec 17 07:25:44 EST 2012 * Added support for Murmur3 (HASHKIT_HASH_MURMUR3) * Portability fixes. 1.0.14 Wed Nov 14 04:56:25 EST 2012 * CLIENT_ERROR fixed to not be treated as a fatal error. * Compiler fixes for older Ubuntu releases. 1.0.13 Fri Oct 19 00:09:28 EDT 2012 * Fix bug that caused version string to not be exported correctly. 1.0.12 Tue Oct 9 03:30:20 EDT 2012 * Added memcached_result_take_value(). * Added ax_libmemcached.m4 1.0.11 Sun Sep 16 20:32:13 EDT 2012 * Removed custom version of memcached. * Updated hardening rules. * Fixed a case where the return error from a socket connection differred from that of a TCP/IP socket. 1.0.10 Sun Jul 29 21:50:15 PDT 2012 * --disable-assert has been removed from configure, and --enable-assert has been added in its place. * Compiling fixes for Clang on OSX Mountain Lion. 1.0.9 Wed Jul 4 22:46:19 EDT 2012 * Faster close on socket. * Instance allocation is now seperated from server interface. This should allow for a better preservation of ABI compliance from now on. * Fix close on exec bug. * Numerous other bug fixes. 1.0.8 Tue May 22 15:06:04 EDT 2012 * Added support for setting options via ENV variable LIBMEMCACHED * Fix corner case on last used result. 1.0.7 Sat Apr 28 00:48:29 PDT 2012 * Add API call for exist calls. * Update all license files to be BSD. 1.0.6 Sat Apr 7 18:26:49 PDT 2012 * Fixes for gcc 4.7, lp:961812 * Fix for restart issue that happens under testing. * Fix for lp:962815. * Support for transparent AES encryption. 1.0.5 Tue Mar 13 22:56:47 PDT 2012 * Fixes for OSX. * Version is now parsed directly in the parser, which makes buffered operations now work with it.. * memstat has been extended so that it can be used to find the version of the server. * Update documentation. * Fixes for compile issues on Debian and Ubuntu 1.0.4 Thu Jan 26 22:33:54 PST 2012 * Fix for memcached_dump(). * Additional testing for memcached_stat_execute().
2013-09-12 16:20:56 +02:00
+++ libmemcached/byteorder.cc
@@ -36,6 +36,9 @@
*/
#include "mem_config.h"
+#ifdef __sun
+# include "sys/byteorder.h"
+#endif
#include "libmemcached/byteorder.h"
/* Byte swap a 64-bit number. */