Commit 2341f9a1adb42c8c1049ac63bd26fe8d6b0368c1
Committed by
Anthony Liguori
1 parent
0e74e66b
rename HAVE_PREADV to CONFIG_PREADV
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
2 changed files
with
3 additions
and
3 deletions
configure
@@ -1736,7 +1736,7 @@ if test "$iovec" = "yes" ; then | @@ -1736,7 +1736,7 @@ if test "$iovec" = "yes" ; then | ||
1736 | echo "#define HAVE_IOVEC 1" >> $config_host_h | 1736 | echo "#define HAVE_IOVEC 1" >> $config_host_h |
1737 | fi | 1737 | fi |
1738 | if test "$preadv" = "yes" ; then | 1738 | if test "$preadv" = "yes" ; then |
1739 | - echo "#define HAVE_PREADV 1" >> $config_host_h | 1739 | + echo "#define CONFIG_PREADV 1" >> $config_host_h |
1740 | fi | 1740 | fi |
1741 | if test "$fdt" = "yes" ; then | 1741 | if test "$fdt" = "yes" ; then |
1742 | echo "CONFIG_FDT=y" >> $config_host_mak | 1742 | echo "CONFIG_FDT=y" >> $config_host_mak |
posix-aio-compat.c
@@ -33,7 +33,7 @@ static int cur_threads = 0; | @@ -33,7 +33,7 @@ static int cur_threads = 0; | ||
33 | static int idle_threads = 0; | 33 | static int idle_threads = 0; |
34 | static TAILQ_HEAD(, qemu_paiocb) request_list; | 34 | static TAILQ_HEAD(, qemu_paiocb) request_list; |
35 | 35 | ||
36 | -#ifdef HAVE_PREADV | 36 | +#ifdef CONFIG_PREADV |
37 | static int preadv_present = 1; | 37 | static int preadv_present = 1; |
38 | #else | 38 | #else |
39 | static int preadv_present = 0; | 39 | static int preadv_present = 0; |
@@ -102,7 +102,7 @@ static size_t handle_aiocb_ioctl(struct qemu_paiocb *aiocb) | @@ -102,7 +102,7 @@ static size_t handle_aiocb_ioctl(struct qemu_paiocb *aiocb) | ||
102 | return aiocb->aio_nbytes; | 102 | return aiocb->aio_nbytes; |
103 | } | 103 | } |
104 | 104 | ||
105 | -#ifdef HAVE_PREADV | 105 | +#ifdef CONFIG_PREADV |
106 | 106 | ||
107 | static ssize_t | 107 | static ssize_t |
108 | qemu_preadv(int fd, const struct iovec *iov, int nr_iov, off_t offset) | 108 | qemu_preadv(int fd, const struct iovec *iov, int nr_iov, off_t offset) |