File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,12 @@ pub fn memfd_create(name: &CStr, flags: MemFdCreateFlag) -> Result<OwnedFd> {
48
48
// Android does not have a memfd_create symbol
49
49
not( target_os = "android" ) ,
50
50
any(
51
+ // Note that memfd_create is available since release 13.0
52
+ // See https://man.freebsd.org/cgi/man.cgi?query=memfd_create
51
53
target_os = "freebsd" ,
52
- // If the OS is Linux, gnu and musl expose a memfd_create symbol but not uclibc
53
- target_env = "gnu" ,
54
+ // If the OS is Linux, gnu and musl expose a memfd_create symbol but not uclibc.
55
+ // But in glibc it is availible since 2.27. The oldest one officially supported by Rust is 2.17.
56
+ // So it is reasonable to keep compatibility with it.
54
57
target_env = "musl" ,
55
58
) ) ) ]
56
59
{
You can’t perform that action at this time.
0 commit comments