-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Zend PHP extensions that have no dependencies
Several PHP extensions have no external requirements, these were enabled. The `sockets` extension required a patch in order to compile, which is now included in the ./patches directory.
- Loading branch information
Showing
4 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
cosmocc | ||
ph7 | ||
php | ||
target | ||
/cosmocc | ||
/ph7 | ||
/php | ||
/target | ||
*.zip | ||
*.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright (c) Alexandre Gomes Gaigalas <[email protected]> | ||
# SPDX-License-Identifier: ISC | ||
|
||
--- ext/sockets/multicast.h.orig 2024-07-07 10:15:00.221335337 -0300 | ||
+++ ext/sockets/multicast.h 2024-07-07 10:15:03.599347501 -0300 | ||
@@ -14,11 +14,11 @@ | ||
+----------------------------------------------------------------------+ | ||
*/ | ||
|
||
-#if defined(MCAST_JOIN_GROUP) && !defined(__APPLE__) | ||
+#if defined(MCAST_JOIN_GROUP) && !defined(__APPLE__) && !defined(__COSMOCC__) | ||
# define RFC3678_API 1 | ||
/* has block/unblock and source membership, in this case for both IPv4 and IPv6 */ | ||
# define HAS_MCAST_EXT 1 | ||
-#elif defined(IP_ADD_SOURCE_MEMBERSHIP) && !defined(__APPLE__) | ||
+#elif defined(IP_ADD_SOURCE_MEMBERSHIP) && !defined(__APPLE__) && !defined(__COSMOCC__) | ||
/* has block/unblock and source membership, but only for IPv4 */ | ||
# define HAS_MCAST_EXT 1 | ||
#endif | ||
|
||
--- ext/sockets/multicast.c.orig 2024-07-07 09:19:04.467193555 -0300 | ||
+++ ext/sockets/multicast.c 2024-07-07 10:01:31.563897681 -0300 | ||
@@ -722,7 +722,7 @@ | ||
#define ifr_ifindex ifr_index | ||
#endif | ||
|
||
-#if defined(SIOCGIFNAME) | ||
+#if defined(SIOCGIFNAME) || defined(__COSMOCC__) | ||
if_req.ifr_ifindex = if_index; | ||
if (ioctl(php_sock->bsd_socket, SIOCGIFNAME, &if_req) == -1) { | ||
#elif defined(HAVE_IF_INDEXTONAME) | ||
@@ -801,7 +801,7 @@ | ||
if ((((struct sockaddr*)&cur_req.ifr_addr)->sa_family == AF_INET) && | ||
(((struct sockaddr_in*)&cur_req.ifr_addr)->sin_addr.s_addr == | ||
addr->s_addr)) { | ||
-#if defined(SIOCGIFINDEX) | ||
+#if defined(SIOCGIFINDEX)|| defined(__COSMOCC__) | ||
if (ioctl(php_sock->bsd_socket, SIOCGIFINDEX, (char*)&cur_req) | ||
== -1) { | ||
#elif defined(HAVE_IF_NAMETOINDEX) | ||
@@ -815,7 +815,7 @@ | ||
errno); | ||
goto err; | ||
} else { | ||
-#if defined(SIOCGIFINDEX) | ||
+#if defined(SIOCGIFINDEX) || defined(__COSMOCC__) | ||
*if_index = cur_req.ifr_ifindex; | ||
#else | ||
*if_index = index_tmp; |