Skip to content

Commit

Permalink
Fix zeroconf support on Alpine Linux (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga authored and rdmark committed Jul 6, 2024
1 parent da9d55d commit 849abaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes in 2.4.2
* UPD: meson: Add option to override system WolfSSL
with embedded WolfSSL: `with-ssl-override', GitHub #1175
* UPD: Remove obsolete Red Hat Upstart and SuSE SysV init scripts, GitHub #1162
* FIX: Restore Zeroconf functionality for Alpine Linux, GitHub #1198
* FIX: meson: Fix errors in PAM support macro, GitHub #1179
* FIX: meson: Fix perl shebang substitution in cnid2_create script, GitHub #1184
* FIX: meson: Fix errors in shadow password macro, GitHub #1191
Expand Down
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ avahi = dependency('avahi-client', required: false)

dns_sd_libs = []

dns_sd = cc.find_library('dns_sd', has_headers: 'dns_sd.h', required: false)
dns_sd = cc.find_library('dns_sd', required: false)
if dns_sd.found()
dns_sd_libs += dns_sd
endif
Expand All @@ -735,7 +735,7 @@ zeroconf_provider = ''
freebsd_zeroconf_daemon = ''

have_dns = (
(dns_sd.found() or system.found())
(dns_sd.found() or system.found()) and cc.has_header('dns_sd.h')
and cc.has_function(
'DNSServiceRegister',
dependencies: dns_sd_libs,
Expand Down

0 comments on commit 849abaa

Please sign in to comment.