mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
resolv: Remove BSD compatibility conditionals and header
This commit is contained in:
@ -57,11 +57,7 @@
|
||||
#define BIND_4_COMPAT
|
||||
|
||||
#include <sys/param.h>
|
||||
#if (!defined(BSD)) || (BSD < 199306)
|
||||
# include <sys/bitypes.h>
|
||||
#else
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
/*%
|
||||
|
@ -66,6 +66,8 @@
|
||||
#include <resolv.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef LOG_AUTH
|
||||
# define LOG_AUTH 0
|
||||
@ -73,13 +75,6 @@
|
||||
|
||||
#define MULTI_PTRS_ARE_ALIASES 1 /* XXX - experimental */
|
||||
|
||||
#if defined(BSD) && (BSD >= 199103) && defined(AF_INET6)
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#else
|
||||
# include "../conf/portability.h"
|
||||
#endif
|
||||
|
||||
#if defined(USE_OPTIONS_H)
|
||||
# include <../conf/options.h>
|
||||
#endif
|
||||
@ -963,49 +958,3 @@ addrsort (char **ap, int num)
|
||||
needsort++;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(BSD43_BSD43_NFS) || defined(sun)
|
||||
/* some libc's out there are bound internally to these names (UMIPS) */
|
||||
void
|
||||
ht_sethostent (int stayopen)
|
||||
{
|
||||
_sethtent(stayopen);
|
||||
}
|
||||
|
||||
void
|
||||
ht_endhostent (void)
|
||||
{
|
||||
_endhtent();
|
||||
}
|
||||
|
||||
struct hostent *
|
||||
ht_gethostbyname (char *name)
|
||||
{
|
||||
return (_gethtbyname(name));
|
||||
}
|
||||
|
||||
struct hostent *
|
||||
ht_gethostbyaddr (const char *addr, size_t len, int af)
|
||||
{
|
||||
return (_gethtbyaddr(addr, len, af));
|
||||
}
|
||||
|
||||
struct hostent *
|
||||
gethostent (void)
|
||||
{
|
||||
return (_gethtent());
|
||||
}
|
||||
|
||||
void
|
||||
dns_service (void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#undef dn_skipname
|
||||
dn_skipname(comp_dn, eom)
|
||||
const u_char *comp_dn, *eom;
|
||||
{
|
||||
return (__dn_skipname(comp_dn, eom));
|
||||
}
|
||||
#endif /*old-style libc with yp junk in it*/
|
||||
|
Reference in New Issue
Block a user