File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
#![ allow( unsafe_code) ]
2
2
3
+ use crate :: alloc:: string:: String ;
4
+ use crate :: alloc:: string:: ToString ;
3
5
use crate :: backend:: io:: syscalls:: ioctl;
4
6
use crate :: fd:: AsFd ;
5
7
use crate :: ffi:: CStr ;
6
- #[ cfg( all( target_os = "linux" , feature = "alloc" ) ) ]
7
8
use crate :: ffi:: CString ;
8
9
use crate :: io;
9
10
use crate :: net:: netdevice:: open_socket;
Original file line number Diff line number Diff line change 1
1
#![ allow( unsafe_code) ]
2
2
3
+ use crate :: alloc:: string:: String ;
4
+ use crate :: alloc:: string:: ToString ;
3
5
use crate :: backend:: io:: syscalls:: ioctl;
4
6
use crate :: fd:: AsFd ;
5
7
use crate :: ffi:: CStr ;
6
- #[ cfg( all( target_os = "linux" , feature = "alloc" ) ) ]
7
8
use crate :: ffi:: CString ;
8
9
use crate :: io;
9
10
use crate :: net:: netdevice:: open_socket;
10
- use crate :: path:: Arg ;
11
11
use core:: mem:: MaybeUninit ;
12
12
use core:: ptr:: { addr_of, addr_of_mut} ;
13
13
use linux_raw_sys:: ctypes:: c_char;
Original file line number Diff line number Diff line change 5
5
//!
6
6
//! [Linux]: https://man7.org/linux/man-pages/man7/netdevice.7.html
7
7
8
+ use crate :: alloc:: string:: String ;
8
9
use crate :: fd:: OwnedFd ;
9
10
use crate :: io;
10
11
use crate :: io:: Errno ;
You can’t perform that action at this time.
0 commit comments