# HG changeset patch # User Gregory Szorc # Date 1491687200 25200 # Node ID 39d36c2db68eb7969c721820e3bd284a338a57f6 # Parent 1064a296a2a74a0621b253392639ef6ca0be3e87 zstd: vendor python-zstandard 0.8.1 This contains a fix for compilation on BSDs. #no-check-commit diff -r 1064a296a2a7 -r 39d36c2db68e contrib/python-zstandard/NEWS.rst --- a/contrib/python-zstandard/NEWS.rst Wed Mar 08 09:03:42 2017 -0500 +++ b/contrib/python-zstandard/NEWS.rst Sat Apr 08 14:33:20 2017 -0700 @@ -1,6 +1,11 @@ Version History =============== +0.8.1 (released 2017-04-08) +--------------------------- + +* Add #includes so compilation on OS X and BSDs works (#20). + 0.8.0 (released 2017-03-08) --------------------------- diff -r 1064a296a2a7 -r 39d36c2db68e contrib/python-zstandard/c-ext/python-zstandard.h --- a/contrib/python-zstandard/c-ext/python-zstandard.h Wed Mar 08 09:03:42 2017 -0500 +++ b/contrib/python-zstandard/c-ext/python-zstandard.h Sat Apr 08 14:33:20 2017 -0700 @@ -17,7 +17,7 @@ #include "zdict.h" #include "zstdmt_compress.h" -#define PYTHON_ZSTANDARD_VERSION "0.8.0" +#define PYTHON_ZSTANDARD_VERSION "0.8.1" typedef enum { compressorobj_flush_finish, diff -r 1064a296a2a7 -r 39d36c2db68e contrib/python-zstandard/zstd.c --- a/contrib/python-zstandard/zstd.c Wed Mar 08 09:03:42 2017 -0500 +++ b/contrib/python-zstandard/zstd.c Sat Apr 08 14:33:20 2017 -0700 @@ -11,6 +11,9 @@ #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #include +#elif defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#include +#include #endif #include "python-zstandard.h"