summaryrefslogtreecommitdiff
path: root/acountry.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-25 03:44:43 +0000
committerYang Tse <yangsita@gmail.com>2008-08-25 03:44:43 +0000
commit2b838e85e7da467b37a092473caa14014fc0717b (patch)
tree8f9a31dea444e2dc7f236d987c37e20291dd24b1 /acountry.c
parent09d10cb5c590586ddddefc9822246070977d4a88 (diff)
downloadc-ares-2b838e85e7da467b37a092473caa14014fc0717b.tar.gz
c-ares-2b838e85e7da467b37a092473caa14014fc0717b.tar.bz2
c-ares-2b838e85e7da467b37a092473caa14014fc0717b.zip
George Neill's fix acountry sample application compilation failure.
Diffstat (limited to 'acountry.c')
-rw-r--r--acountry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/acountry.c b/acountry.c
index 5d041ed..afee113 100644
--- a/acountry.c
+++ b/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;