diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2013-12-09 14:45:01 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-12-16 03:41:30 +0100 |
commit | 9f4f60183b2de12ff618a4966378c6b49184b1de (patch) | |
tree | e9628c283c72203adc88edf61c8b8dd9ad794863 /libbb | |
parent | 22bb81fa85bc2a581c368923fe6d2bd80f74708f (diff) |
do not fail build if MAXSYMLINKS isn't defined
This is needed for, eg, hurd, which is known to have no constraints.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xreadlink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index 0bdf394da..bb63da08c 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c @@ -8,6 +8,12 @@ #include "libbb.h" +/* some systems (eg Hurd) does not have MAXSYMLINKS definition, + * set it to some reasonable value if it isn't defined */ +#ifndef MAXSYMLINKS +# define MAXSYMLINKS 20 +#endif + /* * NOTE: This function returns a malloced char* that you will have to free * yourself. |