Skip to content

Commit 5a60f4c

Browse files
committed
another librdkafka patch
1 parent 63fcdd9 commit 5a60f4c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/SPC/builder/unix/library/librdkafka.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@ trait librdkafka
1717
*/
1818
protected function build(): void
1919
{
20-
FileSystem::replaceFileStr($this->source_dir . '/lds-gen.py', "funcs.append('rd_ut_coverage_check')", '');
20+
FileSystem::replaceFileStr(
21+
$this->source_dir . '/lds-gen.py',
22+
"funcs.append('rd_ut_coverage_check')",
23+
''
24+
);
25+
FileSystem::replaceFileStr(
26+
$this->source_dir . '/src/rd.h',
27+
'#error "IOV_MAX not defined"',
28+
'#define IOV_MAX 1024' . "\n#define __GNU__"
29+
);
2130
UnixAutoconfExecutor::create($this)
31+
->appendEnv(['CFLAGS' => '-Wno-int-conversion -Wno-unused-but-set-variable -Wno-unused-variable'])
2232
->optionalLib(
2333
'zstd',
2434
function ($lib) {

0 commit comments

Comments
 (0)