Skip to content

Commit b333ec1

Browse files
committed
Update patch to resolve cover incompatibility
1 parent 4dd645c commit b333ec1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

cpython-unix/build-zstd.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,22 @@ index 5e6e8bc..6ca72a1 100644
5454
qsort_r(ctx->suffix, ctx->suffixSize, sizeof(U32),
5555
(ctx->d <= 8 ? &COVER_strict_cmp8 : &COVER_strict_cmp),
5656
ctx);
57+
@@ -290,7 +290,7 @@ static void COVER_storeOffsets(COVER_ctx_t *ctx, size_t dstCapacity) {
58+
#if (defined(_WIN32) && defined(_MSC_VER)) || defined(__APPLE__)
59+
static int WIN_CDECL COVER_strict_cmp(void* g_coverCtx, const void* lp, const void* rp) {
60+
-#elif defined(_GNU_SOURCE)
61+
+#elif defined(_GNU_SOURCE) && defined(__GLIBC__)
62+
static int COVER_strict_cmp(const void *lp, const void *rp, void *g_coverCtx) {
63+
#else /* C90 fallback.*/
64+
static int COVER_strict_cmp(const void *lp, const void *rp) {
65+
@@ -306,7 +306,7 @@ static int COVER_strict_cmp(const void *lp, const void *rp) {
66+
#if (defined(_WIN32) && defined(_MSC_VER)) || defined(__APPLE__)
67+
static int WIN_CDECL COVER_strict_cmp8(void* g_coverCtx, const void* lp, const void* rp) {
68+
-#elif defined(_GNU_SOURCE)
69+
+#elif defined(_GNU_SOURCE) && defined(__GLIBC__)
70+
static int COVER_strict_cmp8(const void *lp, const void *rp, void *g_coverCtx) {
71+
#else /* C90 fallback.*/
72+
static int COVER_strict_cmp8(const void *lp, const void *rp) {
5773
EOF
5874
fi
5975

0 commit comments

Comments
 (0)