File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -849,6 +849,7 @@ impl SpacectlRange {
849
849
/// assert_eq!(buf, b"012\0\0\0\0\0\09abcdef");
850
850
/// ```
851
851
#[ cfg( target_os = "freebsd" ) ]
852
+ #[ inline] // Delays codegen, preventing linker errors with dylibs and --no-allow-shlib-undefined
852
853
pub fn fspacectl( fd: RawFd , range: SpacectlRange ) -> Result <SpacectlRange > {
853
854
let mut rqsr = libc:: spacectl_range {
854
855
r_offset: range. 0 ,
@@ -897,6 +898,7 @@ pub fn fspacectl(fd: RawFd, range: SpacectlRange) -> Result<SpacectlRange> {
897
898
/// assert_eq!(buf, b"012\0\0\0\0\0\09abcdef");
898
899
/// ```
899
900
#[ cfg( target_os = "freebsd" ) ]
901
+ #[ inline] // Delays codegen, preventing linker errors with dylibs and --no-allow-shlib-undefined
900
902
pub fn fspacectl_all(
901
903
fd: RawFd ,
902
904
offset: libc:: off_t,
You can’t perform that action at this time.
0 commit comments