X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mx.h;h=3bb1e34a52473519f74929efb1fd0a5105431e49;hb=91644ff0b2e6eb3b26c5544a4a769ca4aaf08a14;hp=2aedf8a3c0424c3f0501f4800235fa894d585ed6;hpb=1b0445caadad8c59d0fc9ead943d4aa3f0f59275;p=~andy%2Ffetchmail diff --git a/mx.h b/mx.h index 2aedf8a3..3bb1e34a 100644 --- a/mx.h +++ b/mx.h @@ -1,17 +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 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 */