summaryrefslogtreecommitdiff
path: root/m4/cares-functions.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-26 18:51:03 +0000
committerYang Tse <yangsita@gmail.com>2009-04-26 18:51:03 +0000
commit61ac74c684714c445654a1252cdf7f55315ed208 (patch)
tree8d7f6370325a65993e7b0ba4fa6b524652ea887d /m4/cares-functions.m4
parent27aa165e9c6002bfd11af3cc8da3f0ee1e2cfefe (diff)
downloadc-ares-61ac74c684714c445654a1252cdf7f55315ed208.tar.gz
c-ares-61ac74c684714c445654a1252cdf7f55315ed208.tar.bz2
c-ares-61ac74c684714c445654a1252cdf7f55315ed208.zip
Initial step towards a configure time curl_socklen_t definition
Diffstat (limited to 'm4/cares-functions.m4')
-rw-r--r--m4/cares-functions.m421
1 files changed, 19 insertions, 2 deletions
diff --git a/m4/cares-functions.m4 b/m4/cares-functions.m4
index b625e03..13a83ba 100644
--- a/m4/cares-functions.m4
+++ b/m4/cares-functions.m4
@@ -1,7 +1,7 @@
#***************************************************************************
# $Id$
#
-# Copyright (C) 2008 by Daniel Stenberg et al
+# Copyright (C) 2008 - 2009 by Daniel Stenberg et al
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 26
+# serial 28
dnl CARES_INCLUDES_ARPA_INET
@@ -284,6 +284,23 @@ cares_includes_ws2tcpip="\
])
+dnl CARES_PREPROCESS_CALLCONV
+dnl -------------------------------------------------
+dnl Set up variable with a preprocessor block which
+dnl defines function calling convention.
+
+AC_DEFUN([CARES_PREPROCESS_CALLCONV], [
+cares_preprocess_callconv="\
+/* preprocess start */
+#ifdef HAVE_WINDOWS_H
+# define FUNCALLCONV __stdcall
+#else
+# define FUNCALLCONV
+#endif
+/* preprocess end */"
+])
+
+
dnl CARES_CHECK_FUNC_FCNTL
dnl -------------------------------------------------
dnl Verify if fcntl is available, prototyped, and