PR/25707: Love: remove _LIBC from res_state as suggested, so that res_ninit

calls in userland don't trash memory.
This commit is contained in:
christos 2004-05-26 01:08:50 +00:00
parent 16cd5129d4
commit 5fec60124f

View File

@ -1,4 +1,4 @@
/* $NetBSD: resolv.h,v 1.25 2004/05/22 23:46:16 christos Exp $ */
/* $NetBSD: resolv.h,v 1.26 2004/05/26 01:08:50 christos Exp $ */
/*
* Copyright (c) 1983, 1987, 1989
@ -180,9 +180,6 @@ struct __res_state {
struct in_addr addr;
u_int32_t mask;
} sort_list[MAXRESOLVSORT];
#ifndef _LIBC
char lookups[4];
#else
res_send_qhook qhook; /* query hook */
res_send_rhook rhook; /* response hook */
int res_h_errno; /* last one set for this context */
@ -199,7 +196,6 @@ struct __res_state {
struct __res_state_ext *ext; /* extention for IPv6 */
} _ext;
} _u;
#endif
};
typedef struct __res_state *res_state;