tronkko / dirent

C/C++ library for retrieving information on files and directories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PATH_MAX not defined in find.c

DDHarry opened this issue · comments

Hello Toni,

Thanks for the libs. Good job.

I am using MacOS X, clang compiler. When trying to compile find.c, it rejects it because of
'PATH_MAX not defined or used'

PATH_MAX seems to be the max length of the files & directories names listed. So I fix it to 255 and it just works fine.

I hope you spend a fantastic day.
Thanks,
Harry

Glad you figured it out!

I trust that the problem will be fixed by authors of Clang in the near future so we don't need to define PATH_MAX in find.c.