-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
have_sys_socket.c: support for MacOS added #470
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost there, just one change outlined below to use CMake's check_symbol_exists
function to instead determine what symbols are available for use, so that the platform detection doesn't become as much of a dependency for this to work as intended.
HAVE_DISALLOW_SIGNAL_DURING_SENDING definition is used instead of SUPPORT_DISALLOW_SIGNAL_DURING_SENDING
Joel, thank you for review. The code is updated based on your comments. |
Joel, the code was updated based on the last recommendations. Thank you! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## latest #470 +/- ##
==========================================
+ Coverage 90.59% 90.60% +0.01%
==========================================
Files 47 47
Lines 4379 4385 +6
Branches 587 587
==========================================
+ Hits 3967 3973 +6
Misses 279 279
Partials 133 133 ☔ View full report in Codecov by Sentry. |
Thanks for sticking with this one! There is just one last change needed - an include |
Joel, I added sys/socket.h include to include/private/config/have_sys_socket.h as you suggested. |
Sorry, I should have also mentioned that you'll need to move the code from |
No problem, I have moved the definition of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more failing check now - there is an include that is no longer necessary with the last refactoring. I believe once you take out this line it should be good to go.
Thanks again for your patience with this!
Joel, I have removed unnecessary include. |
Thanks very much for not only raising this issue but putting together a fix and sticking with it through the review process! Portability is a primary goal of this project and it's always great to see progress made towards that. |
Added support for MacOS: