summaryrefslogtreecommitdiff
path: root/config-win32.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-16 19:16:41 +0000
committerYang Tse <yangsita@gmail.com>2008-07-16 19:16:41 +0000
commit7dd6d7cbe13a7b55a52be0bdf6499ca809ea8523 (patch)
treeeea630e5f9f1755ec6fdc2116457da6615b3698d /config-win32.h
parent6b84d9ff24e5d4921fb12f43b66f2b668b42bd06 (diff)
downloadc-ares-7dd6d7cbe13a7b55a52be0bdf6499ca809ea8523.tar.gz
c-ares-7dd6d7cbe13a7b55a52be0bdf6499ca809ea8523.tar.bz2
c-ares-7dd6d7cbe13a7b55a52be0bdf6499ca809ea8523.zip
Configure process now checks availability of recvfrom() socket function and
finds out its return type and the types of its arguments. Added definitions for non-configure systems config files, and introduced macro sreadfrom which will be used on udp sockets as a recvfrom() wrapper.
Diffstat (limited to 'config-win32.h')
-rw-r--r--config-win32.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/config-win32.h b/config-win32.h
index 854143d..8e621a4 100644
--- a/config-win32.h
+++ b/config-win32.h
@@ -97,6 +97,30 @@
/* Define to the function return type for recv. */
#define RECV_TYPE_RETV int
+/* Define if you have the recvfrom function. */
+#define HAVE_RECVFROM 1
+
+/* Define to the type of arg 1 for recvfrom. */
+#define RECVFROM_TYPE_ARG1 SOCKET
+
+/* Define to the type of arg 2 for recvfrom. */
+#define RECVFROM_TYPE_ARG2 char *
+
+/* Define to the type of arg 3 for recvfrom. */
+#define RECVFROM_TYPE_ARG3 int
+
+/* Define to the type of arg 4 for recvfrom. */
+#define RECVFROM_TYPE_ARG4 int
+
+/* Define to the type of arg 5 for recvfrom. */
+#define RECVFROM_TYPE_ARG5 struct sockaddr *
+
+/* Define to the type of arg 6 for recvfrom. */
+#define RECVFROM_TYPE_ARG6 int *
+
+/* Define to the function return type for recvfrom. */
+#define RECVFROM_TYPE_RETV int
+
/* Define if you have the send function. */
#define HAVE_SEND 1