From 295b8c54ac2bf77d09aa6bf48aafd1dbaaaef4a8 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sun, 16 Aug 2020 19:00:54 +0900 Subject: [PATCH] Fix to declare vsnprintf prototype with detected condition It was introduced in HP-UX 10.20 (undocumented) and suppoted in 10.30 and later, so no need to declare it on HP-UX unconditionally. Signed-off-by: OBATA Akio (cherry picked from commit 76a04f5fce7c958be414ce0ede6afe14c66a5584) --- config.h.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config.h.cmake b/config.h.cmake index 8900f2e86..4c095931d 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1146,11 +1146,7 @@ __END_DECLS -/* - * On HP-UX, the declaration of vsnprintf() is needed every time ! - */ - -#if !defined(HAVE_VSNPRINTF) || defined(hpux) +#if !defined(HAVE_VSNPRINTF_PROTO) #if __STDC__ #include #include