[Libwebsockets] test-server-pthreads.c build error

Chropin Hu chropinhu at gmail.com
Thu Mar 1 13:56:26 CET 2018

Hello All,
        I meet the following error with this config:

cmake ../libwebsockets/ -DOPENSSL_ROOT_DIR=/usr/local/ssl-cp

error: comparison between signed and unsigned integer expressions
    if (threads > ARRAY_SIZE(pthread_service)) {
It`s related to the LWS_MAX_SWP param.

If do not set this param, it do not build the test-server-pthreads.c
I just fix the build error at local.

Is it possible to build the test-server-pthreads.c whether set LWS_MAX_SMP
or not?

Yours Chropin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20180301/64282624/attachment.html>

More information about the Libwebsockets mailing list