Skip to content

Commit

Permalink
Fix gcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Jul 20, 2024
1 parent ca5b970 commit a1520ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native/libs/System.Native/pal_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ int32_t SystemNative_MemfdSupported(void)
int32_t major, minor;

// memfd_create is only known to work properly on kernel version > 3.17 and throws SIGSEGV instead of ENOTSUP
if (sscanf(uts.release, "%d.%d", &major, &minor) == 2 && major < 3 || (major == 3 && minor < 17))
if (sscanf(uts.release, "%d.%d", &major, &minor) == 2 && (major < 3 || (major == 3 && minor < 17)))
{
return 0;
}
Expand Down

0 comments on commit a1520ca

Please sign in to comment.