pike.git / src / modules / _Protocols_DNS_SD / sd.c

version» Context lines:

pike.git/src/modules/_Protocols_DNS_SD/sd.c:53: Inside #if defined(HAVE_DNS_SD) || defined(HAVE_HOWL), #if defined(HAVE_DNS_SD) and #if defined(HAVE_DNS_SD_H)
  #ifdef HAVE_DNS_SD_H      /* Workaround for typo in 10.3 header (which 10.4 doesn't preserve) */   #define kDNSServiceErr_BadinterfaceIndex kDNSServiceErr_BadInterfaceIndex      #include <dns_sd.h>   #endif      #define IS_ERR(x) ((x) != kDNSServiceErr_NoError)    + /* Include these for htons(3SOCKET) et al. */ + #ifdef HAVE_ARPA_INET_H + #include <arpa/inet.h> + #endif + #ifdef HAVE_NETINET_IN_H + #include <netinet/in.h> + #endif +    /* Instance variables for each service registration */   struct service {    DNSServiceRef service_ref;   };         static void raise_error(char *msg, DNSServiceErrorType err)   {    char *reason;