[BusyBox] [PATCH] PATH_MAX undefined in [u]mount.c
M. R. Brown
mrbrown at 0xd6.org
Sat Jan 26 17:58:03 UTC 2002
* Erik Andersen <andersen at codepoet.org> on Sat, Jan 26, 2002:
>
> I just added
>
> #ifndef PATH_MAX
> #define PATH_MAX 256
> #endif
>
> so howpefully that will be the end of that one... If the system
> one is missing from limits.h (for whatever reason) we will fall
> back on using 256...
>
When I encountered this problem using the SH toolchain, I did exactly what
Dan did, since other busybox files that use PATH_MAX included
<sys/param.h>. At that time I couldn't figure out why only a couple of
files wouldn't include <sys/param.h>, but I was too busy to generate a
patch.
Isn't adding the include string to [u]mount.c a better, more portable fix?
M. R.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20020126/4e1c9553/attachment.pgp
More information about the busybox
mailing list