summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2e4ef4f)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
output_sym "CONFIG_PSHARED"
fi
if test "$have_asprintf" = "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
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"
fi
if test "$linux_fallocate" = "yes" ; then
output_sym "CONFIG_LINUX_FALLOCATE"
#include <stdlib.h>
#include "oslib/asprintf.h"
#include <stdlib.h>
#include "oslib/asprintf.h"
+#ifndef CONFIG_HAVE_VASPRINTF
int vasprintf(char **strp, const char *fmt, va_list ap)
{
va_list ap_copy;
int vasprintf(char **strp, const char *fmt, va_list ap)
{
va_list ap_copy;
+#ifndef CONFIG_HAVE_ASPRINTF
int asprintf(char **strp, const char *fmt, ...)
{
va_list arg;
int asprintf(char **strp, const char *fmt, ...)
{
va_list arg;
#ifndef FIO_ASPRINTF_H
#define FIO_ASPRINTF_H
#ifndef FIO_ASPRINTF_H
#define FIO_ASPRINTF_H
+#ifndef CONFIG_HAVE_VASPRINTF
int vasprintf(char **strp, const char *fmt, va_list ap);
#endif
int vasprintf(char **strp, const char *fmt, va_list ap);
#endif
+#ifndef CONFIG_HAVE_ASPRINTF
int asprintf(char **strp, const char *fmt, ...);
#endif
int asprintf(char **strp, const char *fmt, ...);
#endif