Weirder and weirder... can you look if this macro is defined (and is not ultimately undefined without redefinition) in the config.h which should be generated by your configure script?
Message
Re: [milter-greylist] missing res_state
2013-10-08 by Jim Klimov