File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -787,11 +787,25 @@ impl File {
787787 unsafe fn os_datasync ( fd : c_int ) -> c_int {
788788 libc:: fcntl ( fd, libc:: F_FULLFSYNC )
789789 }
790- #[ cfg( target_os = "linux" ) ]
790+ #[ cfg( any(
791+ target_os = "freebsd" ,
792+ target_os = "linux" ,
793+ target_os = "android" ,
794+ target_os = "netbsd" ,
795+ target_os = "openbsd"
796+ ) ) ]
791797 unsafe fn os_datasync ( fd : c_int ) -> c_int {
792798 libc:: fdatasync ( fd)
793799 }
794- #[ cfg( not( any( target_os = "macos" , target_os = "ios" , target_os = "linux" ) ) ) ]
800+ #[ cfg( not( any(
801+ target_os = "android" ,
802+ target_os = "freebsd" ,
803+ target_os = "ios" ,
804+ target_os = "linux" ,
805+ target_os = "macos" ,
806+ target_os = "netbsd" ,
807+ target_os = "openbsd"
808+ ) ) ) ]
795809 unsafe fn os_datasync ( fd : c_int ) -> c_int {
796810 libc:: fsync ( fd)
797811 }
You can’t perform that action at this time.
0 commit comments