X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mx.h;h=3bb1e34a52473519f74929efb1fd0a5105431e49;hb=49268a95ee78bc179fd3439b3f06e9a06c993c92;hp=5e2824c0c05cc0eb16cf23e1223eeb6c1f39b8b4;hpb=4fbbabc2705e0c7320516b673f855494d48ec81d;p=~andy%2Ffetchmail diff --git a/mx.h b/mx.h index 5e2824c0..3bb1e34a 100644 --- a/mx.h +++ b/mx.h @@ -1,4 +1,12 @@ -/* mx.h -- name-to-preference association for MX records */ +/* mx.h -- name-to-preference association for MX records. + * For license terms, see the file COPYING in this directory. + */ + +#include "config.h" + +#ifdef HAVE_NETDB_H +#include +#endif struct mxentry { @@ -6,8 +14,10 @@ struct mxentry int pref; }; -#ifdef HAVE_PROTOTYPES -extern int getmxrecords(char *, int, struct mxentry *); -#endif /* HAVE_PROTOTYPES */ +extern struct mxentry * getmxrecords(const char *); + +#if !HAVE_DECL_H_ERRNO +extern int h_errno; +#endif /* mx.h ends here */