diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-16 18:57:39 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-08-17 23:21:42 +0900 |
commit | 7fdb1600455b900a42c74f50e6b9b0a645a66482 (patch) | |
tree | 476e1a0e64886a4cf71ab27cb91992958a367632 | |
parent | 08c2252bdad460d457234e5810fe912fc8d2364e (diff) | |
download | tdelibs-7fdb1600455b900a42c74f50e6b9b0a645a66482.tar.gz tdelibs-7fdb1600455b900a42c74f50e6b9b0a645a66482.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.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d1b2c29a0..2184743a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -356,7 +356,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 ) |