From 774d6c9de0959eee37279984d301e8d783222123 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 9 Jun 2024 00:23:37 +0200 Subject: [PATCH] Add missing sodium.h header The php_libsodium.h uses SODIUM_LIBRARY_VERSION_* macros from the sodium.h (sodium/version.h) header. --- ext/sodium/php_libsodium.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/sodium/php_libsodium.h b/ext/sodium/php_libsodium.h index 3ff8d526ae65..673541fe784c 100644 --- a/ext/sodium/php_libsodium.h +++ b/ext/sodium/php_libsodium.h @@ -26,6 +26,8 @@ extern zend_module_entry sodium_module_entry; # include "TSRM.h" #endif +#include + #define SODIUM_LIBRARY_VERSION() (char *) (void *) sodium_version_string() #define SODIUM_CRYPTO_BOX_KEYPAIRBYTES() crypto_box_SECRETKEYBYTES + crypto_box_PUBLICKEYBYTES