summaryrefslogtreecommitdiff
path: root/archivers/py-zstandard/patches/patch-zstd.c
blob: 1f1605b4b26080b0458c28826eb910636189c3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-zstd.c,v 1.1 2018/10/22 15:32:01 adam Exp $

Allow newer zstd.

--- zstd.c.orig	2018-10-22 15:14:29.000000000 +0000
+++ zstd.c
@@ -210,10 +210,6 @@ void zstd_module_init(PyObject* m) {
 	   We detect this mismatch here and refuse to load the module if this
 	   scenario is detected.
 	*/
-	if (ZSTD_VERSION_NUMBER != 10306 || ZSTD_versionNumber() != 10306) {
-		PyErr_SetString(PyExc_ImportError, "zstd C API mismatch; Python bindings not compiled against expected zstd version");
-		return;
-	}
 
 	bufferutil_module_init(m);
 	compressionparams_module_init(m);
@@ -341,4 +337,4 @@ int safe_pybytes_resize(PyObject** obj, 
 	*obj = tmp;
 
 	return 0;
-}
\ No newline at end of file
+}