#define one of the following
#define _POSIX_SOURCE #define _POSIX_C_SOURCE 1 #define _XOPEN_SOURCE
until #include ing <limits.h> , and the compiler will see _POSIX_PATH_MAX .
You can also specify this on the command line using the -D compiler option:
gcc -c main.c -D_POSIX_C_SOURCE=1
eg.
source share