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 | |
parent | 22bb81fa85bc2a581c368923fe6d2bd80f74708f (diff) | |
download | busybox-w32-9f4f60183b2de12ff618a4966378c6b49184b1de.tar.gz busybox-w32-9f4f60183b2de12ff618a4966378c6b49184b1de.tar.bz2 busybox-w32-9f4f60183b2de12ff618a4966378c6b49184b1de.zip |
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>
-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 @@ | |||
8 | 8 | ||
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | 10 | ||
11 | /* some systems (eg Hurd) does not have MAXSYMLINKS definition, | ||
12 | * set it to some reasonable value if it isn't defined */ | ||
13 | #ifndef MAXSYMLINKS | ||
14 | # define MAXSYMLINKS 20 | ||
15 | #endif | ||
16 | |||
11 | /* | 17 | /* |
12 | * NOTE: This function returns a malloced char* that you will have to free | 18 | * NOTE: This function returns a malloced char* that you will have to free |
13 | * yourself. | 19 | * yourself. |