Commit d41d013
fix(otel-process-ctx): use raw syscall for memfd_create to support old glibc
libc::memfd_create requires glibc >= 2.27, causing a link error on CentOS 7
(glibc 2.17). Use libc::syscall(SYS_memfd_create, ...) instead, which bypasses
the glibc wrapper and works with any glibc version, matching the previous rustix
behavior.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 60d6541 commit d41d013
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
343 | 345 | | |
344 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
| |||
0 commit comments