1
0
Fork 0
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:
winlin 2020-05-14 13:14:52 +08:00
parent 3cb797dccd
commit 4e1935f678
4 changed files with 20 additions and 19 deletions

View file

@ -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;