X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mx.h;h=3bb1e34a52473519f74929efb1fd0a5105431e49;hb=d31db10231e9ed89f64fdf6e0fb7cae182aa377e;hp=b32a7ef43413ada96e946a92db32659ead0404f6;hpb=38a0022cafb0204f62e6812cee5add94523c0f53;p=~andy%2Ffetchmail diff --git a/mx.h b/mx.h index b32a7ef4..3bb1e34a 100644 --- a/mx.h +++ b/mx.h @@ -1,14 +1,23 @@ -/* 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 { - unsigned char *name; - int pref; + char *name; + int pref; }; -extern struct mxentry * getmxrecords(const unsigned char *); +extern struct mxentry * getmxrecords(const char *); -/* some versions of FreeBSD should declare this but don't */ +#if !HAVE_DECL_H_ERRNO extern int h_errno; +#endif /* mx.h ends here */