summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-04-20 19:13:31 -0600
committerJens Axboe <axboe@kernel.dk>2018-04-20 19:13:31 -0600
commitcb3b68068d4688c4ac9f6d1bf169010f0ce8fab3 (patch)
treedcf006f0927b07f99430aa480c695cdbe67bc04a
parent2e4ef4fbd69eb6d4c07f2f362463e3f3df2e808c (diff)
configure: use proper CONFIG_ prefix for asprintf/vasprintf
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xconfigure4
-rw-r--r--oslib/asprintf.c4
-rw-r--r--oslib/asprintf.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/configure b/configure
index 70cb006..9bdc7a1 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 f1e7fd2..969479f 100644
--- a/oslib/asprintf.c
+++ b/oslib/asprintf.c
@@ -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;
diff --git a/oslib/asprintf.h b/oslib/asprintf.h
index 1aa076b..7425300 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