From cb3b68068d4688c4ac9f6d1bf169010f0ce8fab3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 20 Apr 2018 19:13:31 -0600 Subject: [PATCH] configure: use proper CONFIG_ prefix for asprintf/vasprintf Signed-off-by: Jens Axboe --- configure | 4 ++-- oslib/asprintf.c | 4 ++-- oslib/asprintf.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 70cb006d..9bdc7a15 100755 --- a/configure +++ b/configure @@ -2218,10 +2218,10 @@ if test "$posix_pshared" = "yes" ; then output_sym "CONFIG_PSHARED" fi if test "$have_asprintf" = "yes" ; then - output_sym "HAVE_ASPRINTF" + output_sym "CONFIG_HAVE_ASPRINTF" fi if test "$have_vasprintf" = "yes" ; then - output_sym "HAVE_VASPRINTF" + output_sym "CONFIG_HAVE_VASPRINTF" fi if test "$linux_fallocate" = "yes" ; then output_sym "CONFIG_LINUX_FALLOCATE" diff --git a/oslib/asprintf.c b/oslib/asprintf.c index f1e7fd23..969479fa 100644 --- a/oslib/asprintf.c +++ b/oslib/asprintf.c @@ -3,7 +3,7 @@ #include #include "oslib/asprintf.h" -#ifndef HAVE_VASPRINTF +#ifndef CONFIG_HAVE_VASPRINTF int vasprintf(char **strp, const char *fmt, va_list ap) { va_list ap_copy; @@ -28,7 +28,7 @@ int vasprintf(char **strp, const char *fmt, va_list ap) } #endif -#ifndef HAVE_ASPRINTF +#ifndef CONFIG_HAVE_ASPRINTF int asprintf(char **strp, const char *fmt, ...) { va_list arg; diff --git a/oslib/asprintf.h b/oslib/asprintf.h index 1aa076b8..7425300f 100644 --- a/oslib/asprintf.h +++ b/oslib/asprintf.h @@ -1,10 +1,10 @@ #ifndef FIO_ASPRINTF_H #define FIO_ASPRINTF_H -#ifndef HAVE_VASPRINTF +#ifndef CONFIG_HAVE_VASPRINTF int vasprintf(char **strp, const char *fmt, va_list ap); #endif -#ifndef HAVE_ASPRINTF +#ifndef CONFIG_HAVE_ASPRINTF int asprintf(char **strp, const char *fmt, ...); #endif -- 2.25.1