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
curl: add compatibility for Amiga and GCC 6.5 #6220
Conversation
Changes are mainly reordering and adding of includes required to compile with a more recent version of GCC.
I'd also recommend to let @chris-y have a look at it as he made previous Amiga related changes. |
|
Can't see any issues here. |
I get many of these errors without select.h where fd_set is defined:
Probably you did not use NTLM, or anything in my configuration is different (clib2 etc.)?
|
Not sure I've ever tried it with NTLM. If it is needed for that then no problem, I just wasn't sure why it wasn't included before! |
@@ -863,27 +863,24 @@ then | |||
]) | |||
fi | |||
|
|||
if test "$HAVE_GETHOSTBYNAME" != "1" |
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.
Why remove this check? Doesn't this just make the amiga-specific check now instead get run for everyone?
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.
That's the disadvantage of this change. What I need is that this check is executed even if gethostbyname is already found as there can be multiple sources for that. This check would additionally enable AmiSSL. However, I can try to find a way to execute it only if we know we are compiling it for Amiga but then always.
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.
It is now done if no gethostbyname is found and if AmiSSL is requested.
configure.ac
Outdated
]) | ||
fi | ||
]],[[ | ||
gethostbyname("www.dummysite.com"); |
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.
While here, maybe change this "dummy" name to "example.com" or perhaps just an empty string?
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.
I just left it like it was but no problem, I can change it.
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.
I see now that www.dummysite.com is also used for Minix, Windows and eCos so I would recommend not to change it.
Check for bsdsocket.library is only done if gethostbyname is not found yet or AmiSSL is requested. __NO_NET_API is undefined in source file where required.
Thanks! |
Changes are mainly reordering and adding of includes required
to compile with a more recent version of GCC.