On Linux, PATH_MAX
should be defined in <linux/limits.h>
. Include it before APR and it should solve your issue:
#include <linux/limits.h>
#include <path/to/apr_file_info.h>
Note that including the standard header <limits.h>
header should also include <linux/limits.h>
or the relevant header on POSIX systems.
The equivalent on Windows would be MAX_PATH
, defined in <windef.h>
if I remember correctly.