Hajimu UMEMOTO <ume@...> wrote:
> One more patch, please.
Why is that one required?
I was about to make that change in the code:
#ifdef HAVE_RES_NINIT
#define RES_NINIT(res) res_ninit(res)
#else
#define RES_NINIT(res) \
((_res.options & RES_INIT) == 0 && res_init())
#endif
#ifdef HAVE_RES_NDESTROY
# define RES_NDESTROY(res) res_ndestroy(res)
#else
# ifdef HAVE_RES_NCLOSE
# define RES_NDESTROY(res) res_nclose(res)
# else
# define RES_NDESTROY(res)
# endif
#endif
And use the macro like this:
if (RES_NINIT(res) != 0) {
...
}
Plus checks in configure to discover what we have.
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...Message
Re: [milter-greylist] milter-greylist 2.1.11
2006-08-01 by manu@netbsd.org