From aae237aad59cbb04a2096cc57b172da360e97d99 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 9 Jun 2024 07:17:46 +0200 Subject: [PATCH] Add missing sodium.h header (#14515) 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 3ff8d526ae6..673541fe784 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