Skip to content

Commit b01c8ed

Browse files
committed
conditionally import require_largefile in test_sendfile
The test that uses require_largefile is not compiled for all platforms, so make the import conditional on being on one of the platforms that need it.
1 parent 82b3436 commit b01c8ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_sendfile.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(any(target_os = "android", target_os = "linux"))]
12
use crate::require_largefile;
23
use std::io::prelude::*;
34
#[cfg(any(target_os = "android", target_os = "linux"))]

0 commit comments

Comments
 (0)