[Libwebsockets] PATH_MAX Error

"Andy Green (林安廸)" andy at warmcat.com
Tue Jan 15 11:35:07 CET 2013


On 15/01/13 18:24, the mail apparently from Jack Mitchell included:
> In attempting to build the latest HEAD
> (8db451f3639fc629129bac096a2ed86b0f2c3ff6
> <http://git.warmcat.com/cgi-bin/cgit/libwebsockets/commit/?id=8db451f3639fc629129bac096a2ed86b0f2c3ff6>)
> I hit this compile error:
>
> | In file included from client-handshake.c:1:0:
> | private-libwebsockets.h:392:16: error: 'PATH_MAX' undeclared here (not
> in a function)
> | make[2]: *** [libwebsockets_la-client-handshake.lo] Error 1
> | make[2]: *** Waiting for unfinished jobs....
> | In file included from libwebsockets.c:22:0:
> | private-libwebsockets.h:392:16: error: 'PATH_MAX' undeclared here (not
> in a function)
> | In file included from handshake.c:22:0:
> | private-libwebsockets.h:392:16: error: 'PATH_MAX' undeclared here (not
> in a function)
> | In file included from parsers.c:22:0:
> | private-libwebsockets.h:392:16: error: 'PATH_MAX' undeclared here (not
> in a function)
> | In file included from base64-decode.c:44:0:
> | ./private-libwebsockets.h:392:16: error: 'PATH_MAX' undeclared here
> (not in a function)
>
> Linux, ARM, GCC 4.7.2
>
> I had a look in the README file but couldn't see anything about having
> to specify it myself...?

Hi -

It builds OK here on gcc 4.7.2 from Fedora.

Try sticking a #include <linux/limits.h> in private-libwebsockets.h?

-Andy




More information about the Libwebsockets mailing list