net/pecl-radius: Fix build with php84
This commit is contained in:
parent
ea50e3b61c
commit
6ecf81cce5
@ -13,7 +13,6 @@ LICENSE= BSD3CLAUSE
|
||||
USES= php:pecl
|
||||
|
||||
CONFIGURE_ARGS= --enable-radius
|
||||
IGNORE_WITH_PHP=84
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
|
||||
14
net/pecl-radius/files/patch-php84
Normal file
14
net/pecl-radius/files/patch-php84
Normal file
@ -0,0 +1,14 @@
|
||||
--- radlib_compat.h.orig 2016-02-15 15:11:50 UTC
|
||||
+++ radlib_compat.h
|
||||
@@ -39,7 +39,11 @@ any other GPL-like (LGPL, GPL2) License.
|
||||
#endif
|
||||
|
||||
#include "php.h"
|
||||
+#if PHP_VERSION_ID >= 80400
|
||||
+#include "ext/random/php_random.h"
|
||||
+#else
|
||||
#include "ext/standard/php_rand.h"
|
||||
+#endif
|
||||
#include "ext/standard/php_standard.h"
|
||||
|
||||
#define MPPE_KEY_LEN 16
|
||||
Loading…
x
Reference in New Issue
Block a user