configure: use proper CONFIG_ prefix for asprintf/vasprintf
authorJens Axboe <axboe@kernel.dk>
Sat, 21 Apr 2018 01:13:31 +0000 (19:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 21 Apr 2018 01:13:31 +0000 (19:13 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure
oslib/asprintf.c
oslib/asprintf.h

index 70cb006db81c7187c7846af9c6f6a5194552196d..9bdc7a156e73ab46bd6102615f4dfbfe4619b14f 100755 (executable)
--- 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"
index f1e7fd2338f664af29204a7287c5ca3750c644da..969479faf4f41cd9fd7f2e156508372cdf89abcc 100644 (file)
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 #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;
index 1aa076b8a2483074fd120ff25e6dd6847f4ac6af..7425300fdc8f6850d195963117cd95fa422245de 100644 (file)
@@ -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