Files
ports/security/pecl-mcrypt/files/patch-php84
Po-Chuan Hsieh f8d7720ab3 security/pecl-mcrypt: Fix build with php84
- While I'm here:
  - Fix indent
  - Remove outdated post-patch:

Approved by:	portmgr (blanket)
2024-07-30 22:07:37 +08:00

15 lines
333 B
Plaintext

--- mcrypt.c.orig 2023-12-19 10:55:02 UTC
+++ mcrypt.c
@@ -38,7 +38,11 @@
#include "php_ini.h"
#include "php_globals.h"
#include "ext/standard/info.h"
+#if PHP_VERSION_ID >= 80400
+#include "ext/random/php_random.h"
+#else
#include "ext/standard/php_rand.h"
+#endif
#include "zend_smart_str.h"
#include "php_mcrypt_filter.h"