aboutsummaryrefslogtreecommitdiffstats
path: root/mx.h
diff options
context:
space:
mode:
Diffstat (limited to 'mx.h')
-rw-r--r--mx.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/mx.h b/mx.h
index da422758..3bb1e34a 100644
--- a/mx.h
+++ b/mx.h
@@ -2,6 +2,12 @@
* For license terms, see the file COPYING in this directory.
*/
+#include "config.h"
+
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
struct mxentry
{
char *name;
@@ -10,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 */