Fix dn_comp prototype and add stub

This function is used by ping6 from iputils.
This commit is contained in:
Michael Forney 2013-11-23 22:33:05 -08:00 committed by Rich Felker
parent 22f29bfebe
commit 642936d6dd
2 changed files with 10 additions and 1 deletions

View File

@ -133,7 +133,7 @@ int res_querydomain(const char *, const char *, int, int, unsigned char *, int);
int res_search(const char *, int, int, unsigned char *, int);
int res_mkquery(int, const char *, int, int, char *, int, struct rrec *, char *, int);
int res_send(const char *, int, char *, int);
int dn_comp(unsigned char *, unsigned char *, int, unsigned char **, unsigned char *, unsigned char **);
int dn_comp(const char *, unsigned char *, int, unsigned char **, unsigned char **);
int dn_expand(const unsigned char *, const unsigned char *, const unsigned char *, char *, int);
int dn_skipname(const unsigned char *, const unsigned char *);

9
src/network/dn_comp.c Normal file
View File

@ -0,0 +1,9 @@
#include <resolv.h>
#include "libc.h"
int __dn_comp(const char *src, unsigned char *dst, int space, unsigned char **dnptrs, unsigned char **lastdnptr)
{
return -1;
}
weak_alias(__dn_comp, dn_comp);