@@ -39,14 +39,14 @@ use std::sync::Arc;
39
39
40
40
use libc:: { uid_t, gid_t} ;
41
41
42
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" ) ) ]
42
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
43
43
use libc:: { c_char, time_t} ;
44
44
45
45
#[ cfg( target_os = "linux" ) ]
46
46
use libc:: c_char;
47
47
48
48
49
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" ) ) ]
49
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
50
50
#[ repr( C ) ]
51
51
pub struct c_passwd {
52
52
pw_name : * const c_char , // user name
@@ -464,7 +464,7 @@ pub mod os {
464
464
/// Although the `passwd` struct is common among Unix systems, its actual
465
465
/// format can vary. See the definitions in the `base` module to check which
466
466
/// fields are actually present.
467
- #[ cfg( any( target_os = "linux" , target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" ) ) ]
467
+ #[ cfg( any( target_os = "linux" , target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
468
468
pub mod unix {
469
469
use std:: path:: Path ;
470
470
@@ -598,7 +598,7 @@ pub mod os {
598
598
///
599
599
/// These platforms have `change` and `expire` fields in their `passwd`
600
600
/// C structs.
601
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" ) ) ]
601
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
602
602
pub mod bsd {
603
603
use std:: path:: Path ;
604
604
use libc:: time_t;
@@ -683,15 +683,15 @@ pub mod os {
683
683
}
684
684
685
685
/// Any extra fields on a `User` specific to the current platform.
686
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" ) ) ]
686
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
687
687
pub type UserExtras = bsd:: UserExtras ;
688
688
689
689
/// Any extra fields on a `User` specific to the current platform.
690
690
#[ cfg( any( target_os = "linux" ) ) ]
691
691
pub type UserExtras = unix:: UserExtras ;
692
692
693
693
/// Any extra fields on a `Group` specific to the current platform.
694
- #[ cfg( any( target_os = "linux" , target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" ) ) ]
694
+ #[ cfg( any( target_os = "linux" , target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
695
695
pub type GroupExtras = unix:: GroupExtras ;
696
696
}
697
697
0 commit comments