I recently ran onto an error while compiling a development on a SLES11 box, the error that came up was the following:
error: âPATH_MAXâ undeclared here (not in a function)
The error can be solved by adding the following line after the
#include ‹string.h› line to the sourcecode of the .c file which generates the error during compilation:
Recompile your sourcecode again, it should be fine now!