remote -lutil?

This commit is contained in:
DubbleClick
2025-07-03 11:11:21 +07:00
parent 420fe497a5
commit aff3373b78
6 changed files with 8 additions and 9 deletions

View File

@@ -14,14 +14,13 @@ class swoole extends Extension
{
public function patchBeforeMake(): bool
{
$patched = false;
if ($this->builder instanceof MacOSBuilder) {
// Fix swoole with event extension <util.h> conflict bug
$util_path = shell()->execWithResult('xcrun --show-sdk-path', false)[1][0] . '/usr/include/util.h';
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/swoole/thirdparty/php/standard/proc_open.cc', 'include <util.h>', 'include "' . $util_path . '"');
$patched = true;
return true;
}
return $patched;
return false;
}
public function getExtVersion(): ?string