diff options
author | Denys Vlasenko | 2017-10-31 15:59:19 +0100 |
---|---|---|
committer | Denys Vlasenko | 2017-10-31 15:59:19 +0100 |
commit | f1fdda45423a0133094840c0367aef1b026635d5 (patch) | |
tree | ed14a666e2097ebfd28a24e9ff2a4256d142b0b1 /networking | |
parent | 6bcc2c0f6cb868232ec06231aa37a3fa65c59d22 (diff) | |
download | busybox-f1fdda45423a0133094840c0367aef1b026635d5.zip busybox-f1fdda45423a0133094840c0367aef1b026635d5.tar.gz |
Fix build failures if MAXHOSTNAMELEN or MAXPATHLEN is not defined
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/traceroute.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index 6dcbc2f..a027b92 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c @@ -709,6 +709,9 @@ packet_ok(int read_len, len_and_sockaddr *from_lsa, # if ENABLE_FEATURE_TRACEROUTE_VERBOSE if (verbose) { +# ifndef MAXHOSTNAMELEN +# define MAXHOSTNAMELEN 80 +# endif unsigned char *p; char pa1[MAXHOSTNAMELEN]; char pa2[MAXHOSTNAMELEN]; |