airborne12 opened a new pull request, #60753:
URL: https://github.com/apache/doris/pull/60753

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Problem Summary:
   
   macOS `statfs` struct does not have the `f_frsize` member — it is 
Linux-specific (`statvfs` on Linux has `f_frsize`, but macOS `statfs` only has 
`f_bsize`). This causes a compilation error on macOS:
   
   ```
   error: no member named 'f_frsize' in 'statfs'
       const auto block_size = stat.f_frsize ? stat.f_frsize : stat.f_bsize;
                               ~~~~ ^
   ```
   
   The fix adds `#ifdef __APPLE__` guards to use `f_bsize` directly on macOS, 
while keeping the original `f_frsize` logic on Linux.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [x] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [x] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to