aboutsummaryrefslogtreecommitdiff
path: root/ares/acountry.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/acountry.c')
-rw-r--r--ares/acountry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares/acountry.c b/ares/acountry.c
index 5d041ed38..afee113b9 100644
--- a/ares/acountry.c
+++ b/ares/acountry.c
@@ -60,6 +60,10 @@
#include "inet_net_pton.h"
#include "inet_ntop.h"
+#ifndef INADDR_NONE
+#define INADDR_NONE 0xffffffff
+#endif
+
static const char *usage = "acountry [-vh?] {host|addr} ...\n";
static const char nerd_fmt[] = "%u.%u.%u.%u.zz.countries.nerd.dk";
static const char *nerd_ver1 = nerd_fmt + 14;