Skip to content

Commit aae237a

Browse files
authored
Add missing sodium.h header (php#14515)
The php_libsodium.h uses SODIUM_LIBRARY_VERSION_* macros from the sodium.h (sodium/version.h) header.
1 parent 0dcb467 commit aae237a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/sodium/php_libsodium.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ extern zend_module_entry sodium_module_entry;
2626
# include "TSRM.h"
2727
#endif
2828

29+
#include <sodium.h>
30+
2931
#define SODIUM_LIBRARY_VERSION() (char *) (void *) sodium_version_string()
3032

3133
#define SODIUM_CRYPTO_BOX_KEYPAIRBYTES() crypto_box_SECRETKEYBYTES + crypto_box_PUBLICKEYBYTES

0 commit comments

Comments
 (0)