[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] PATH_MAX



On 01/13/13 13:56, Miro Kropáček wrote:

On Sun, Jan 13, 2013 at 2:46 PM, Alan Hourihane <alanh@fairlite.co.uk <mailto:alanh@fairlite.co.uk>> wrote:

    -D_POSIX_SOURCE

Nope, that's not it:

[mikro@workmachine ~]$ cat pokus.c
#include <limits.h>

int a = PATH_MAX;
[mikro@workmachine ~]$ m68k-atari-mint-gcc -o pokus.o -c pokus.c -D_POSIX_SOURCE
pokus.c:3:9: error: 'PATH_MAX' undeclared here (not in a function)


Sounds like GCC isn't recusing down to the systems limits.h as your GCC build may have replaced limits.h in /usr/lib/gcc/....

Alan.