summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-10 15:24:52 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-10 15:24:52 +0200
commit144126789c0f7a75ef025c37f5e6e3e01be6dad8 (patch)
tree9effcb7b0b08b623843290e4936ae13d5231c82f
parent8dcfc9849e94f15b42118e0929b6667028291138 (diff)
downloadlibssh-144126789c0f7a75ef025c37f5e6e3e01be6dad8.tar.gz
libssh-144126789c0f7a75ef025c37f5e6e3e01be6dad8.tar.xz
libssh-144126789c0f7a75ef025c37f5e6e3e01be6dad8.zip
Added configure checks for vsnprintf and _vsnprintf.
-rw-r--r--ConfigureChecks.cmake5
-rw-r--r--config.h.cmake6
2 files changed, 11 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index fc755fbc..4789365a 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -35,6 +35,11 @@ if (WIN32)
set(HAVE_GETHOSTBYNAME TRUE)
endif (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H)
+ check_function_exists(vsnprintf HAVE_VSNPRINTF)
+ if(NOT HAVE_VSNPRINTF)
+ check_function_exists(_vsnprintf HAVE__VSNPRINTF)
+ endif(NOT HAVE_VSNPRINTF)
+
set(HAVE_SELECT TRUE)
endif (WIN32)
diff --git a/config.h.cmake b/config.h.cmake
index 8ef29ff2..6aaab2f2 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -37,6 +37,12 @@
/*************************** FUNCTIONS ***************************/
+/* Define to 1 if you have the `vsnprintf' function. */
+#cmakedefine HAVE_VSNPRINTF
+
+/* Define to 1 if you have the `_vsnprintf' function. */
+#cmakedefine HAVE__VSNPRINTF
+
/* Define to 1 if you have the `cfmakeraw' function. */
#cmakedefine HAVE_CFMAKERAW 1