-
Notifications
You must be signed in to change notification settings - Fork 109
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
otp_net.c: use EAI_OVERFLOW when it is defined #1255
Conversation
We probably should use cmake macro check_symbol_exists instead of C #ifdef which doesn't catch enums. In src/platforms/generic_unix/lib/CMakeLists.txt, we check for EAI_BADHINTS only. Is EAI_OVERFLOW the only undefined symbol on your platform? Could you please confirm the darwin version you are using? |
@pguyot I actually found this old issue now: OpenSMTPD/OpenSMTPD#1246 There the solution was OpenSMTPD/OpenSMTPD@276e064 P. S. My original fix was borrowed from mojca/luasocket@4189bd5 |
@pguyot And yes, that was the only problematic define for me. I am on 10.6 ppc, which is somewhat in between 10.5.8 and 10.6.8 in terms of SDK features. |
@pguyot I have updated the patch here. |
Sorry for the late review, if you don't mind it would be great having this in release-0.6 branch, so we can include it with next v0.6.6 release. |
@barracuda156, it would be great if you could rebase this on release-0.6 branch like @bettio suggested, so we can get this into our next update! ;-) |
Yeah sure, will do. Sorry, missed that comment earlier. |
No worries at all! It was the holidays, I just thought I would ping you so this fix doesn't get forgotten ;-) |
Closes: atomvm#1254 Signed-off-by: Sergey Fedorov <[email protected]>
@UncleGrumpy Done |
Closes: #1254
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later