zeroconf-bonjour: use g_htons() instead of htons()
htons() is not available if netinet/in.h is not included.
This commit is contained in:
		@@ -63,7 +63,7 @@ void init_zeroconf_osx(const char *serviceName)
 | 
				
			|||||||
	DNSServiceErrorType error = DNSServiceRegister(&dnsReference,
 | 
						DNSServiceErrorType error = DNSServiceRegister(&dnsReference,
 | 
				
			||||||
						       0, 0, serviceName,
 | 
											       0, 0, serviceName,
 | 
				
			||||||
						       SERVICE_TYPE, NULL, NULL,
 | 
											       SERVICE_TYPE, NULL, NULL,
 | 
				
			||||||
						       htons(listen_port), 0,
 | 
											       g_htons(listen_port), 0,
 | 
				
			||||||
						       NULL,
 | 
											       NULL,
 | 
				
			||||||
						       dnsRegisterCallback,
 | 
											       dnsRegisterCallback,
 | 
				
			||||||
						       NULL);
 | 
											       NULL);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user