Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Oct 28, 2024
1 parent 06df6ad commit aca23e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext-src/swoole_socket_coro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,11 @@ static void socket_coro_register_constants(int module_number) {
#endif
}

#ifdef __APPLE__
#define SOL_TCP IPPROTO_TCP
#define TCP_INFO TCP_CONNECTION_INFO
#endif

void php_swoole_socket_coro_minit(int module_number) {
SW_INIT_CLASS_ENTRY(swoole_socket_coro, "Swoole\\Coroutine\\Socket", "Co\\Socket", swoole_socket_coro_methods);
SW_SET_CLASS_NOT_SERIALIZABLE(swoole_socket_coro);
Expand Down

0 comments on commit aca23e3

Please sign in to comment.