summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-21 03:06:08 +0000
committerYang Tse <yangsita@gmail.com>2008-07-21 03:06:08 +0000
commit1faffd7a7e2d60d6633dd8b3b97e396f9748f359 (patch)
tree8a0b9102814c3648636ab2003bfab0ac41ce96b8 /setup_once.h
parent44ae9e4697d4ef264db5be55fd0e9ed7cc654a85 (diff)
downloadc-ares-1faffd7a7e2d60d6633dd8b3b97e396f9748f359.tar.gz
c-ares-1faffd7a7e2d60d6633dd8b3b97e396f9748f359.tar.bz2
c-ares-1faffd7a7e2d60d6633dd8b3b97e396f9748f359.zip
Use the sreadfrom() wrapper to replace recvfrom() in our code.
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index d315990..e1c5af2 100644
--- a/setup_once.h
+++ b/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.