2005-05-29
2005-05-29 10:48:33 by 0
-
7005733cf64d88d8a376e5f2e2e31f92dae09a17
(16 lines)
(+8/-8)
[
Show
| Annotate
]
Branch: 7.9
Corrected workaround for header file typo.
Rev: src/modules/_Protocols_DNS_SD/sd.c:1.2
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: sd.c,v 1.1 2005/04/09 21:07:21 jonasw Exp $
+ || $Id: sd.c,v 1.2 2005/05/29 10:48:33 jonasw Exp $
*/
34:
#include <signal.h>
- RCSID("$Id: sd.c,v 1.1 2005/04/09 21:07:21 jonasw Exp $");
+ RCSID("$Id: sd.c,v 1.2 2005/05/29 10:48:33 jonasw Exp $");
#ifdef THIS
54: Inside #if defined(HAVE_DNS_SD) || defined(HAVE_HOWL) and #if defined(HAVE_DNS_SD)
/* Mac OS X interface is defined in <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
65:
};
- /* Workaround for 10.4 header changes */
- #if !defined(kDNSServiceErr_BadinterfaceIndex)
- # define kDNSServiceErr_BadinterfaceIndex kDNSServiceErr_BadInterfaceIndex
- #endif
-
+
static void raise_error(char *msg, DNSServiceErrorType err)
{
char *reason;
111:
case kDNSServiceErr_Incompatible:
reason = "Incompatible";
break;
- case kDNSServiceErr_BadinterfaceIndex:
+ case kDNSServiceErr_BadInterfaceIndex:
reason = "Bad interface index";
break;
default: