1
0
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:
Muhammad Moinur Rahman 2024-01-18 20:39:55 +01:00
parent 35a287f77a
commit 53cd0b886f
No known key found for this signature in database
GPG Key ID: BDB9B5A617C0BC91

View File

@ -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