aboutsummaryrefslogtreecommitdiff
path: root/ares/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-21 03:06:07 +0000
committerYang Tse <yangsita@gmail.com>2008-07-21 03:06:07 +0000
commit1b37baf6568e37d52601231c45e6394a3d0ff55b (patch)
tree1085842fa9ad6bb6f9dda01033d2414dd43c9850 /ares/setup_once.h
parentbffe69a151bbd1aae72e50c128fdb0c58596ade1 (diff)
Use the sreadfrom() wrapper to replace recvfrom() in our code.
Diffstat (limited to 'ares/setup_once.h')
-rw-r--r--ares/setup_once.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ares/setup_once.h b/ares/setup_once.h
index d3159904f..e1c5af278 100644
--- a/ares/setup_once.h
+++ b/ares/setup_once.h
@@ -222,6 +222,13 @@ struct timeval {
#endif /* HAVE_RECVFROM */
+#ifdef RECVFROM_TYPE_ARG6_IS_VOID
+# define RECVFROM_ARG6_T unsigned int
+#else
+# define RECVFROM_ARG6_T RECVFROM_TYPE_ARG6
+#endif
+
+
/*
* Uppercase macro versions of ANSI/ISO is*() functions/macros which
* avoid negative number inputs with argument byte codes > 127.