X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mx.h;h=3bb1e34a52473519f74929efb1fd0a5105431e49;hb=d31db10231e9ed89f64fdf6e0fb7cae182aa377e;hp=511eba785755303354720afaea04b55f25d0f8d0;hpb=dc6faf2379170e7cac5005854ce48958115d4896;p=~andy%2Ffetchmail diff --git a/mx.h b/mx.h index 511eba78..3bb1e34a 100644 --- a/mx.h +++ b/mx.h @@ -2,18 +2,22 @@ * For license terms, see the file COPYING in this directory. */ +#include "config.h" + +#ifdef HAVE_NETDB_H +#include +#endif + struct mxentry { - unsigned char *name; - int pref; + char *name; + int pref; }; extern struct mxentry * getmxrecords(const char *); -/* some versions of FreeBSD should declare this but don't */ -/* But only declare it if it isn't already */ -#ifndef h_errno +#if !HAVE_DECL_H_ERRNO extern int h_errno; -#endif /* ndef h_errno */ +#endif /* mx.h ends here */