mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
lang/php82: Fix build
PR: fluffy
This commit is contained in:
parent
35a287f77a
commit
53cd0b886f
@ -1,11 +1,11 @@
|
||||
--- main/fopen_wrappers.c.orig 2024-01-17 22:32:57 UTC
|
||||
--- main/fopen_wrappers.c.orig 2024-01-16 12:19:32 UTC
|
||||
+++ main/fopen_wrappers.c
|
||||
@@ -369,7 +369,11 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *
|
||||
char *pwbuf;
|
||||
|
||||
if (pwbuflen < 1) {
|
||||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
|
||||
+ buflen = sysconf(_SC_PAGESIZE);
|
||||
+ pwbuflen = sysconf(_SC_PAGESIZE);
|
||||
+#else
|
||||
return FAILURE;
|
||||
+#endif
|
||||
|
Loading…
Reference in New Issue
Block a user