Package: libudns-dev Version: 0.0.8-1 Severity: important Tags: patch Including udns.h in a C++ source results in the following error, caused by using the reserved word class in the C header file. Patch included below.
/usr/include/udns.h:700: error: expected primary-expression before ‘enum’ --- udns.h.orig 2005-09-12 14:09:10.000000000 +0200 +++ udns.h 2006-11-26 14:04:18.000000000 +0100 @@ -693,11 +693,11 @@ UDNS_DATA_API extern const struct dns_nameval dns_rcodetab[]; UDNS_API int dns_findname(const struct dns_nameval *nv, const char *name); -#define dns_findclassname(class) dns_findname(dns_classtab, (class)) +#define dns_findclassname(cls) dns_findname(dns_classtab, (cls)) #define dns_findtypename(type) dns_findname(dns_typetab, (type)) #define dns_findrcodename(rcode) dns_findname(dns_rcodetab, (rcode)) -UDNS_API const char *dns_classname(enum dns_class class); +UDNS_API const char *dns_classname(enum dns_class cls); UDNS_API const char *dns_typename(enum dns_type type); UDNS_API const char *dns_rcodename(enum dns_rcode rcode); const char *_dns_format_code(char *buf, const char *prefix, int code); -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (750, 'testing'), (671, 'stable'), (500, 'testing'), (30, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11-vserver-k7 Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Versions of packages libudns-dev depends on: ii libudns0 0.0.8-1 async-capable DNS stub resolver li libudns-dev recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]