]> Pileus Git - ~andy/fetchmail/blobdiff - mx.h
Sign .xz; upload to sf.net; upload .xz to local site.
[~andy/fetchmail] / mx.h
diff --git a/mx.h b/mx.h
index 5e2824c0c05cc0eb16cf23e1223eeb6c1f39b8b4..3bb1e34a52473519f74929efb1fd0a5105431e49 100644 (file)
--- 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 <netdb.h>
+#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 */