File tree 1 file changed +23
-0
lines changed
src/unix/linux_like/linux/gnu
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1206,6 +1206,29 @@ cfg_if! {
1206
1206
}
1207
1207
}
1208
1208
1209
+ cfg_if ! {
1210
+ if #[ cfg( any( target_arch = "x86" ,
1211
+ target_arch = "x86_64" ,
1212
+ target_arch = "arm" ,
1213
+ target_arch = "aarch64" ,
1214
+ target_arch = "loongarch64" ,
1215
+ target_arch = "riscv64" ,
1216
+ target_arch = "s390x" ) ) ] {
1217
+ pub const TUNSETCARRIER : :: Ioctl = 0x400454e2 ;
1218
+ pub const TUNGETDEVNETNS : :: Ioctl = 0x54e3 ;
1219
+ } else if #[ cfg( any( target_arch = "mips" ,
1220
+ target_arch = "mips64" ,
1221
+ target_arch = "powerpc" ,
1222
+ target_arch = "powerpc64" ,
1223
+ target_arch = "sparc" ,
1224
+ target_arch = "sparc64" ) ) ] {
1225
+ pub const TUNSETCARRIER : :: Ioctl = 0x800454e2 ;
1226
+ pub const TUNGETDEVNETNS : :: Ioctl = 0x200054e3 ;
1227
+ } else {
1228
+ // Unknown target_arch
1229
+ }
1230
+ }
1231
+
1209
1232
extern "C" {
1210
1233
pub fn fgetspent_r (
1211
1234
fp : * mut crate :: FILE ,
You can’t perform that action at this time.
0 commit comments