mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix GSO build failed in linux
This commit is contained in:
parent
3cb797dccd
commit
4e1935f678
4 changed files with 20 additions and 19 deletions
|
@ -4879,7 +4879,9 @@ bool SrsConfig::get_rtc_server_gso()
|
|||
}
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)
|
||||
if (v) {
|
||||
utsname un = {0};
|
||||
utsname un;
|
||||
memset((void*)&un, 0, sizeof(utsname));
|
||||
|
||||
int r0 = uname(&un);
|
||||
if (r0 || strcmp(un.release, "4.18.0") < 0) {
|
||||
gso_disabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue