From 03b674ce731d587c839bee4db6d4b8f6d05b00d1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 May 2024 12:57:25 +0200 Subject: [PATCH] net/meson.build: compile IPv[46]Address.cxx only if TCP is enabled --- src/net/meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/net/meson.build b/src/net/meson.build index 7e52c438c..1faa5ed54 100644 --- a/src/net/meson.build +++ b/src/net/meson.build @@ -4,7 +4,11 @@ have_tcp = get_option('tcp') conf.set('HAVE_TCP', have_tcp) if have_tcp - net_sources += 'DscpParser.cxx' + net_sources += [ + 'IPv4Address.cxx', + 'IPv6Address.cxx', + 'DscpParser.cxx', + ] endif if have_tcp and not get_option('ipv6').disabled() @@ -43,8 +47,6 @@ net = static_library( 'AddressInfo.cxx', 'StaticSocketAddress.cxx', 'AllocatedSocketAddress.cxx', - 'IPv4Address.cxx', - 'IPv6Address.cxx', 'SocketAddress.cxx', 'SocketUtil.cxx', 'SocketDescriptor.cxx',