X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mx.h;h=3bb1e34a52473519f74929efb1fd0a5105431e49;hb=2629c4511c68729d98acfd08637c1f00d3807f49;hp=cc0e28d5bffd49d72552ce82547e7af4f1710cb4;hpb=9e818012346fbee36ba481866b3d0005ac6816ea;p=~andy%2Ffetchmail diff --git a/mx.h b/mx.h index cc0e28d5..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 { @@ -8,10 +16,8 @@ struct mxentry 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 */