[Libwebsockets] PATH_MAX Error

Jack Mitchell ml at communistcode.co.uk
Tue Jan 15 11:24:44 CET 2013


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...?

Best Regards,
Jack.

-- 

   Jack Mitchell (jack at embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




More information about the Libwebsockets mailing list