$NetBSD: patch-aa,v 1.3 2024/06/25 16:23:38 ryoon Exp $

* Fix segfault.

--- traceroute.c.orig	2007-10-10 21:50:07.000000000 +0000
+++ traceroute.c
@@ -638,6 +638,7 @@ int fixargs(int *, char **, char **);
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <arpa/nameser.h>
+#include <arpa/inet.h> /* for inet_addr(3) */
 #include <sys/time.h>
 
 #ifndef vms                     /* Not VMS */
@@ -758,17 +759,6 @@ void cksum(u_int16_t *, int, volatile u_
 #undef IP_HDRINCL
 #endif
 
-#ifndef vms
-extern  int errno;
-#endif
-
-extern  char *inet_ntoa();
-extern  u_long inet_addr();
-
-#ifndef ULTRIX43
-char *index(const char *string, int character);
-#endif
-
 #ifdef V630
 #ifndef __linux__
 void halt();	/* signal handler */
