thom311 / libnl

Netlink Library Suite
GNU Lesser General Public License v2.1
423 stars 311 forks source link

route/netem: fix compilation with uclibc-ng & use PATH_MAX #259

Closed commodo closed 4 years ago

commodo commented 4 years ago

On uclibc-ng, the NAME_MAX & PATH_MAX are declared in dirent.h.

NAME_MAX is the limit of a file. PATH_MAX is the limit of an absolute path, which includes NAME_MAX. It's a good idea to use PATH_MAX.

Signed-off-by: Alexandru Ardelean alexandru.ardelean@analog.com

commodo commented 4 years ago

Following comment https://github.com/strace/strace/pull/145#issuecomment-670019931 from here, I will close this and fix it in uclibc-ng

Thanks and apologies for the noise Alex