-/* 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 <netdb.h>
+#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 */