From: Jens Axboe Date: Sat, 21 Apr 2018 01:13:31 +0000 (-0600) Subject: configure: use proper CONFIG_ prefix for asprintf/vasprintf X-Git-Tag: fio-3.7~21 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cb3b68068d4688c4ac9f6d1bf169010f0ce8fab3 configure: use proper CONFIG_ prefix for asprintf/vasprintf Signed-off-by: Jens Axboe --- 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