Skip to content

Commit cebd95b

Browse files
committed
suggestion
1 parent aff3373 commit cebd95b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SPC/builder/extension/swoole.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ public function patchBeforeMake(): bool
1717
if ($this->builder instanceof MacOSBuilder) {
1818
// Fix swoole with event extension <util.h> conflict bug
1919
$util_path = shell()->execWithResult('xcrun --show-sdk-path', false)[1][0] . '/usr/include/util.h';
20-
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/swoole/thirdparty/php/standard/proc_open.cc', 'include <util.h>', 'include "' . $util_path . '"');
20+
FileSystem::replaceFileStr(
21+
"{$this->source_dir}/thirdparty/php/standard/proc_open.cc",
22+
'include <util.h>',
23+
'include "' . $util_path . '"',
24+
);
2125
return true;
2226
}
2327
return false;

0 commit comments

Comments
 (0)