generic: assume vsnprintf() is present

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-09-14 21:47:50 +03:00
parent 68d771e7ad
commit 304132f1c2
2 changed files with 1 additions and 25 deletions

View file

@ -57,7 +57,6 @@ macro_bool_to_01(X11_XSync_FOUND HAVE_XSYNC) # kidleti
# specific order. Refer to the man page for each symbol for which a
# check is to be added to get the proper set of headers.
check_symbol_exists(strtoll "stdlib.h" HAVE_STRTOLL) # kioslave
check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF) # config.h
check_symbol_exists(getgrouplist "unistd.h;grp.h" HAVE_GETGROUPLIST) # kio
check_function_exists(backtrace HAVE_BACKTRACE) # kdecore, kio

View file

@ -27,7 +27,6 @@
#cmakedefine HAVE_SENDFILE 1
#cmakedefine HAVE_SETMNTENT 1
#cmakedefine HAVE_STRTOLL 1
#cmakedefine HAVE_VSNPRINTF 1
#cmakedefine HAVE_GETGROUPLIST 1
#cmakedefine HAVE_TTYNAME_R 1
@ -57,29 +56,7 @@
/* Define to 1 if you have libintl */
#cmakedefine HAVE_LIBINTL 1
/*********************/
/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/
#if !defined(HAVE_VSNPRINTF)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif
/* Define to 1 if getmntinfo() uses statvfs struct */
#cmakedefine GETMNTINFO_USES_STATVFS 1
/* Defined to 1 if you have a d_type member in struct dirent */