zy-kkk opened a new pull request, #47870:
URL: https://github.com/apache/doris/pull/47870

   ## Description
   
   When compiling on MacOS with PCH (Precompiled Headers) disabled, the 
compilation fails with an undefined `INADDR_NONE` error. This is because the 
required header `<arpa/inet.h>` is not explicitly included. This PR fixes the 
issue by adding the necessary header inclusion.
   
   The error occurs because:
   1. On Linux, `INADDR_NONE` might be indirectly included through other system 
headers
   2. On MacOS, the header dependencies are more strict and require explicit 
inclusion
   3. When PCH is enabled, this issue is masked as all system headers are 
precompiled
   
   ## Changes
   - Add `<arpa/inet.h>` inclusion in 
`be/src/olap/rowset/beta_rowset_writer_v2.h`
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to