Skip to content

Commit b778346

Browse files
committed
Fix mDNSResponder support on Windows.
1 parent f8bed3d commit b778346

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cups/dnssd.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct _cups_dnssd_resolve_s // DNS-SD resolve request
147147
#endif // HAVE_MDNSRESPONDER
148148
};
149149

150-
#if _WIN32
150+
#if _WIN32 && !defined(HAVE_MDNSRESPONDER)
151151
struct _win32_srv_s // Service
152152
{
153153
DNS_SERVICE_REGISTER_REQUEST req; // Registration request
@@ -156,7 +156,7 @@ struct _win32_srv_s // Service
156156
WCHAR hostname[256]; // Hostname
157157
WCHAR *txt; // TXT key/value string buffer
158158
};
159-
#endif // _WIN32
159+
#endif // _WIN32 && !HAVE_MDNSRESPONDER
160160

161161
struct _cups_dnssd_service_s // DNS-SD service registration
162162
{

0 commit comments

Comments
 (0)