Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] milter-greylist 2.1.11

2006-08-01 by manu@netbsd.org

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@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.