diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-16 18:57:39 +0900 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2020-08-17 14:21:12 +0000 |
commit | cc7cd8323514e0dbd0a485128491e619f3f19633 (patch) | |
tree | c8c70ecf9d3d54e3cd1ae79d360f13f145b5f6b7 | |
parent | 59debdf4f0f76222d69ad4f64c38f85f5d08313b (diff) | |
download | tdelibs-cc7cd8323514e0dbd0a485128491e619f3f19633.tar.gz tdelibs-cc7cd8323514e0dbd0a485128491e619f3f19633.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>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd20e81b..35137c8fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -360,7 +360,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 ) |