Fix build with GCC 14 (#17282)
This commit is contained in:
parent
9a5b2063b7
commit
b124fe6e65
|
@ -1252,7 +1252,7 @@ static size_t frontend_unix_get_os(char *s,
|
|||
char *ptr;
|
||||
struct utsname buffer;
|
||||
if (uname(&buffer) != 0)
|
||||
return;
|
||||
return _len;
|
||||
*major = (int)strtol(buffer.release, &ptr, 10);
|
||||
*minor = (int)strtol(++ptr, NULL, 10);
|
||||
#if defined(__FreeBSD__)
|
||||
|
|
Loading…
Reference in New Issue