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 {
849849/// assert_eq!(buf, b"012\0\0\0\0\0\09abcdef");
850850/// ```
851851 #[ cfg( target_os = "freebsd" ) ]
852+ #[ inline] // Delays codegen, preventing linker errors with dylibs and --no-allow-shlib-undefined
852853pub fn fspacectl( fd: RawFd , range: SpacectlRange ) -> Result <SpacectlRange > {
853854 let mut rqsr = libc:: spacectl_range {
854855 r_offset: range. 0 ,
@@ -897,6 +898,7 @@ pub fn fspacectl(fd: RawFd, range: SpacectlRange) -> Result<SpacectlRange> {
897898/// assert_eq!(buf, b"012\0\0\0\0\0\09abcdef");
898899/// ```
899900 #[ cfg( target_os = "freebsd" ) ]
901+ #[ inline] // Delays codegen, preventing linker errors with dylibs and --no-allow-shlib-undefined
900902pub fn fspacectl_all(
901903 fd: RawFd ,
902904 offset: libc:: off_t,
You can’t perform that action at this time.
0 commit comments