--- ./src/CommandLine.h.orig	2020-07-31 03:00:57 +0000
+++ ./src/CommandLine.h	2020-07-31 03:01:38 +0000
@@ -9,9 +9,7 @@
 #ifndef SQUID_COMMANDLINE_H
 #define SQUID_COMMANDLINE_H
 
-#if HAVE_GETOPT_H
-#include <getopt.h>
-#endif
+#include "../getopt_long.c"
 #include <vector>
 
 typedef struct option RawLongOption;
--- ./tools/squidclient/Ping.cc.orig	2020-07-31 03:15:15 +0000
+++ ./tools/squidclient/Ping.cc	2020-07-31 03:15:35 +0000
@@ -15,9 +15,7 @@
 #include <csignal>
 #include <iostream>
 
-#if HAVE_GETOPT_H
-#include <getopt.h>
-#endif
+#include "../../getopt_long.c"
 
 namespace Ping
 {
--- ./tools/squidclient/Transport.cc.orig	2020-07-31 03:22:27 +0000
+++ ./tools/squidclient/Transport.cc	2020-07-31 03:22:51 +0000
@@ -12,9 +12,7 @@
 #include "tools/squidclient/Ping.h"
 #include "tools/squidclient/Transport.h"
 
-#if HAVE_GETOPT_H
-#include <getopt.h>
-#endif
+#include "../../getopt_long.c"
 #if HAVE_GNUTLS_X509_H
 #include <gnutls/x509.h>
 #endif
--- ./tools/squidclient/squidclient.cc.orig	2020-07-31 03:20:19 +0000
+++ ./tools/squidclient/squidclient.cc	2020-07-31 03:20:48 +0000
@@ -49,9 +49,8 @@
 #if HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
-#if HAVE_GETOPT_H
-#include <getopt.h>
-#endif
+#include "../../getopt_long.c"
+#include "fde.h"
 
 #ifndef BUFSIZ
 #define BUFSIZ      8192
--- tools/Makefile.in.orig	2020-08-03 05:37:30 +0000
+++ tools/Makefile.in	2020-08-03 05:38:00 +0000
@@ -802,7 +802,6 @@
 man_MANS = cachemgr.cgi.8
 DISTCLEANFILES = 
 LDADD = \
-	$(top_builddir)/src/ip/libip.la \
 	$(top_builddir)/lib/libmiscencoding.la \
 	$(top_builddir)/lib/libmiscutil.la \
 	$(COMPAT_LIB) \
--- tools/squidclient/Makefile.in.orig	2020-08-03 05:21:40 +0000
+++ tools/squidclient/Makefile.in	2020-08-03 05:37:14 +0000
@@ -786,7 +786,6 @@
 man_MANS = squidclient.1
 DISTCLEANFILES = 
 LDADD = \
-	$(top_builddir)/src/ip/libip.la \
 	$(top_builddir)/src/base/libbase.la \
 	$(top_builddir)/lib/libmiscencoding.la \
 	$(top_builddir)/lib/libmiscutil.la \
--- ./tools/Makefile.in.orig	2023-04-12 02:13:08.867487770 +0000
+++ ./tools/Makefile.in	2023-04-12 02:15:16.288150682 +0000
@@ -172,7 +172,7 @@
 	cachemgr__CGIEXT_-MemBuf.$(OBJEXT) \
 	cachemgr__CGIEXT_-cachemgr.$(OBJEXT) \
 	cachemgr__CGIEXT_-test_tools.$(OBJEXT) \
-	cachemgr__CGIEXT_-time.$(OBJEXT)
+	cachemgr__CGIEXT_-time.$(OBJEXT) $(top_builddir)/src/ip/Address.$(OBJEXT) $(top_builddir)/src/ip/tools.$(OBJEXT)
 am__dirstamp = $(am__leading_dot)dirstamp
 nodist_cachemgr__CGIEXT__OBJECTS =  \
 	tests/cachemgr__CGIEXT_-stub_cbdata.$(OBJEXT) \
--- ./tools/squidclient/Makefile.in.orig	2023-04-12 02:15:27.317507518 +0000
+++ ./tools/squidclient/Makefile.in	2023-04-12 02:16:12.386985577 +0000
@@ -168,7 +168,7 @@
 PROGRAMS = $(bin_PROGRAMS)
 am_squidclient_OBJECTS = Ping.$(OBJEXT) Transport.$(OBJEXT) \
 	gssapi_support.$(OBJEXT) squidclient.$(OBJEXT) \
-	test_tools.$(OBJEXT) time.$(OBJEXT)
+	test_tools.$(OBJEXT) time.$(OBJEXT) $(top_builddir)/src/ip/Address.$(OBJEXT) $(top_builddir)/src/ip/tools.$(OBJEXT)
 am__dirstamp = $(am__leading_dot)dirstamp
 nodist_squidclient_OBJECTS = tests/stub_debug.$(OBJEXT) \
 	tests/stub_libmem.$(OBJEXT)
