lib/replace: replace all *printf function if we replace snprintf (bug #9390)
[samba.git] / lib / replace / replace.c
index b8e4e46c529c0c524e32c18ee41c76e0f3a621ca..85d0e36b64ce637c3b891c8c5707b889cdd7fb5f 100644 (file)
@@ -704,7 +704,7 @@ void *rep_memmem(const void *haystack, size_t haystacklen,
 }
 #endif
 
-#ifndef HAVE_VDPRINTF
+#if !defined(HAVE_VDPRINTF) || !defined(HAVE_C99_VSNPRINTF)
 int rep_vdprintf(int fd, const char *format, va_list ap)
 {
        char *s = NULL;
@@ -721,7 +721,7 @@ int rep_vdprintf(int fd, const char *format, va_list ap)
 }
 #endif
 
-#ifndef HAVE_DPRINTF
+#if !defined(HAVE_DPRINTF) || !defined(HAVE_C99_VSNPRINTF)
 int rep_dprintf(int fd, const char *format, ...)
 {
        int ret;