[Libwebsockets] [libwebsockets] Fix compilation on Windows. (#62)

"Andy Green (林安廸)" andy at warmcat.com
Wed Feb 19 01:40:48 CET 2014


On 18/02/14 20:40, the mail apparently from JoakimSoderberg included:
> C89 which Microsofts compiler only support does not allow variable
> declarations anywhere but at the start of a scope.

Thanks... I missed it in the contributed patch; it built OK here.

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=6596e4b2f54c33a1bcfc060f125a5e1ff4a53abd

-Andy

> Also, only try to copy the test-server files if they actually exists. For
> instance the OpenSSL cert generation fails if you run cmake under the git
> bash shell on Windows (won't work with the unix method either) so that
> file will be missing... This would result in a compilation error when
> tests where turned on.
>
> This also fixes #59
> You can merge this Pull Request by running:
>
>    git pull https://github.com/JoakimSoderberg/libwebsockets win_compilation
>
> Or you can view, comment on it, or merge it online at:
>
>    https://github.com/warmcat/libwebsockets/pull/62
>
> -- Commit Summary --
>
>    * Fix compilation on Windows.
>
> -- File Changes --
>
>      M CMakeLists.txt (27)
>      M lib/libwebsockets.c (3)
>
> -- Patch Links --
>
> https://github.com/warmcat/libwebsockets/pull/62.patch
> https://github.com/warmcat/libwebsockets/pull/62.diff
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/warmcat/libwebsockets/pull/62
>




More information about the Libwebsockets mailing list