Yahoo Groups archive

Milter-greylist

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

Message

RE: [milter-greylist] missing res_state

2013-10-15 by Bruncsak, Attila

> > May anybody help to write the test for the existence of res_state?
> 
> Use existing tests. Add this to configure.ac:
> AC_CHECK_TYPE (res_state)
> 
> Run autoconf && autoheader && ./configure
> 
> config.h should have a HAVE_RES_STATE set or unset, depending whether
> configure found it or not. Check config.log to make sure the test did
> not fail for a missing header. (you may have to use AC_INCLUDES_DEFAULT
> in that case)
> 

Thanks for the help.
Here are the patches.
Is it possible to include them into the next development release please?

--- configure.ac.orig	2013-10-08 16:08:10.000000000 +0200
+++ configure.ac	2013-10-15 09:09:59.000000000 +0200
@@ -475,6 +475,14 @@
 AC_TYPE_SIZE_T
 AC_HEADER_TIME
 
+# Do we have res_state type? Tru64 UNIX doesn't have...
+AC_CHECK_TYPES([res_state],[],[],[
+		#include <sys/types.h>
+		#include <netinet/in.h>
+		#include <arpa/nameser.h>
+		#include <resolv.h>
+])
+
 # Do we need -lpthread with -lbind?
 if test $use_libbind = yes ; then
 	AC_MSG_CHECKING([if -lbind needs -lpthread to link])




--- nsupdate.h.orig	2013-05-19 07:53:34.000000000 +0200
+++ nsupdate.h	2013-10-15 09:17:42.000000000 +0200
@@ -37,6 +37,10 @@
 
 #include "acl.h"
 
+#ifndef HAVE_RES_STATE
+typedef struct __res_state *res_state;
+#endif
+
 void nsupdate_init(void);
 
 struct tsig_entry {



Best,
Attila

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.