From f1fdda45423a0133094840c0367aef1b026635d5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 31 Oct 2017 15:59:19 +0100 Subject: Fix build failures if MAXHOSTNAMELEN or MAXPATHLEN is not defined Signed-off-by: Denys Vlasenko --- networking/traceroute.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'networking') 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]; -- cgit v1.1