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
net_mosq.c declaration issues #1622
Comments
do you really still have a compiler that doesn't support c99 that you need to use? |
if you are working with embedded systems, the answer is yes a lot of embedded system compiler can't support C99 |
You should complain to your vendor. Loudly. |
I did already and they will not be able to support that for different reasons and it is also not supported by the INTEGRITY operating system which most of the drones and medical devices use. |
@karlp Compiler do not support C99 sound strange, but it's true in embedded system world. there are lots of vendor do not have plan to upgrade (It's sad...) So, could you please consider to accept the suggestion and the PR. |
They'll never lift a finger while their users keep being complicit and supporting them either :) I'm not a project owner here, just another user, so I'm not accepting or rejecting this PR. However, I'm not convinced it's even true for the case at hand, according to Green Hills themselves:
|
@karlp I am work with latest version of Green Hills compilers and believe me when I said it is not working and we arranged with them sever meetings to ask them to support it. and they support threading but not all threading are supported and also I am not here to convince you as well. I already did those changes but I was putting this as a isuess for other users. |
Thanks for reply and maybe mosquitto team will take care and consider this : ) |
Fixed as per the commit above. Supporting <C99 isn't something that is an express goal of the project, so there's no guarantees it won't break in the future. |
in the function net__socket_connect_tls
declaration of the variable long res; is under the function ERR_clear_error(); it suppose to be the opposite to be able to compile using old c compilers.
and the same issue in the same file in function net__init_ssl_ctx the variable EVP_PKEY *pkey the declaration suppose to be at the top of the function not in the middle.
thanks,
The text was updated successfully, but these errors were encountered: