summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-16 18:57:39 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-03 22:37:54 +0100
commit961a3aac692ee0948b1fce49fcd257772554b0ce (patch)
tree95a16f30f0b38bf45a09837fb0f8a0156aa5a670
parent0ac62424d2a83ca98d6e277d82e8bc09244f9f62 (diff)
downloadtdelibs-961a3aac692ee0948b1fce49fcd257772554b0ce.tar.gz
tdelibs-961a3aac692ee0948b1fce49fcd257772554b0ce.zip
Fix to detect vsnprintf prototype properly
From the standard sepc, <stdio.h> is required in addition to <stdarg.h> Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit cc7cd8323514e0dbd0a485128491e619f3f19633)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 621382177..bdc89d9b9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -343,7 +343,7 @@ check_symbol_exists( ffs "string.h" HAVE_FFS_PROTO )
check_symbol_exists( asprintf "stdio.h" HAVE_ASPRINTF_PROTO )
check_symbol_exists( vasprintf "stdio.h" HAVE_VASPRINTF_PROTO )
check_symbol_exists( snprintf "stdio.h" HAVE_SNPRINTF_PROTO )
-check_symbol_exists( vsnprintf "stdarg.h" HAVE_VSNPRINTF_PROTO )
+check_symbol_exists( vsnprintf "stdarg.h;stdio.h" HAVE_VSNPRINTF_PROTO )
check_symbol_exists( strvercmp "string.h" HAVE_STRVERCMP_PROTO )