Commit 64885b6
fix(macos): gate no_fsync field and initializers for macOS only
The no_fsync feature is specific to macOS HVF framework. This commit:
1. Gates the no_fsync field in FsDeviceConfig with #[cfg(target_os = "macos")]
2. Updates all FsDeviceConfig initializers to conditionally set no_fsync
3. Gates the set_no_fsync method for macOS only
4. Gates the call site in builder.rs for macOS only
This fixes Linux build failures where no_fsync field doesn't exist
in the Linux Config struct.1 parent 43be2f0 commit 64885b6
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| 670 | + | |
670 | 671 | | |
671 | 672 | | |
672 | 673 | | |
| |||
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
| 704 | + | |
703 | 705 | | |
704 | 706 | | |
705 | 707 | | |
| |||
734 | 736 | | |
735 | 737 | | |
736 | 738 | | |
| 739 | + | |
737 | 740 | | |
738 | 741 | | |
739 | 742 | | |
| |||
2543 | 2546 | | |
2544 | 2547 | | |
2545 | 2548 | | |
| 2549 | + | |
| 2550 | + | |
2546 | 2551 | | |
2547 | 2552 | | |
2548 | 2553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
0 commit comments