summaryrefslogtreecommitdiff
path: root/src/sys/memfd.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-04-04 08:39:05 -0600
committerAlan Somers <asomers@gmail.com>2021-04-04 08:39:05 -0600
commit987c8a607b7b5b12660efeb50376ccce6b17e9a6 (patch)
treeb084ae56e100fcadae36acce9cbac1dc91d3d24a /src/sys/memfd.rs
parent6af11c1e70b02e1af36fdc339238d3a117fd3a94 (diff)
downloadnix-987c8a607b7b5b12660efeb50376ccce6b17e9a6.zip
Use memoffset::offset_of instead of homegrown macro
The homegrown macro was fine in 2016, but at some point it technically became UB. The memoffset crate does the same thing, but avoids UB when using rustc 1.51.0 or later. Fixes #1415
Diffstat (limited to 'src/sys/memfd.rs')
0 files changed, 0 insertions, 0 deletions