diff options
author | Alan Somers <asomers@gmail.com> | 2021-04-04 08:39:05 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-04-04 08:39:05 -0600 |
commit | 987c8a607b7b5b12660efeb50376ccce6b17e9a6 (patch) | |
tree | b084ae56e100fcadae36acce9cbac1dc91d3d24a /src/ifaddrs.rs | |
parent | 6af11c1e70b02e1af36fdc339238d3a117fd3a94 (diff) | |
download | nix-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/ifaddrs.rs')
0 files changed, 0 insertions, 0 deletions