Po-Chuan Hsieh ec3e80cc5a
databases/php-tarantool: Fix build with PHP 8.5 Beta 2+
PHP 8.5 Beta 2 changed the #define HASH_KEY_NON_EXISTENT to an enum in [1]. It
breaks the #ifndef check in php-tarantool. Since HASH_KEY_NON_EXISTENT exists in
all supported PHP versions, it is safe to simply remove the check.

Reference:	bf64dfcd99 [1]
		https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p118fb2971704_s4ab64e34911/logs/php85-tarantool-0.4.0.log
		https://pkg-status.freebsd.org/beefy17/data/15stable-amd64-default/56c5cbbc8d99/logs/php85-tarantool-0.4.0.log
2025-09-30 18:50:51 +08:00

14 lines
345 B
Plaintext

--- src/tarantool_msgpack.c.orig 2024-07-04 16:18:34 UTC
+++ src/tarantool_msgpack.c
@@ -5,10 +5,6 @@
#include "third_party/msgpuck.h"
-#ifndef HASH_KEY_NON_EXISTENT
-#define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT
-#endif /* HASH_KEY_NON_EXISTENT */
-
/* UTILITES */
int smart_string_ensure(smart_string *str, size_t len) {