[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 07/26] tests: make libqmp buildable for win32
From: |
Marc-André Lureau |
Subject: |
Re: [PATCH v2 07/26] tests: make libqmp buildable for win32 |
Date: |
Tue, 26 Apr 2022 14:25:48 +0400 |
Hi
On Tue, Apr 26, 2022 at 1:32 PM Thomas Huth <thuth@redhat.com> wrote:
>
> On 26/04/2022 11.26, marcandre.lureau@redhat.com wrote:
> > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> >
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > ---
> > tests/qtest/libqmp.h | 2 ++
> > tests/qtest/libqmp.c | 37 +++++++++++++++++++++++++++++++------
> > 2 files changed, 33 insertions(+), 6 deletions(-)
> >
> > diff --git a/tests/qtest/libqmp.h b/tests/qtest/libqmp.h
> > index 94aa97328a17..772f18b73ba3 100644
> > --- a/tests/qtest/libqmp.h
> > +++ b/tests/qtest/libqmp.h
> > @@ -20,8 +20,10 @@
> > #include "qapi/qmp/qdict.h"
> >
> > QDict *qmp_fd_receive(int fd);
> > +#ifndef G_OS_WIN32
> > void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num,
> > const char *fmt, va_list ap) G_GNUC_PRINTF(4, 0);
> > +#endif
> > void qmp_fd_vsend(int fd, const char *fmt, va_list ap) G_GNUC_PRINTF(2,
> > 0);
> > void qmp_fd_send(int fd, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
> > void qmp_fd_send_raw(int fd, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
> > diff --git a/tests/qtest/libqmp.c b/tests/qtest/libqmp.c
> > index 0358b8313dc4..5f451ebee796 100644
> > --- a/tests/qtest/libqmp.c
> > +++ b/tests/qtest/libqmp.c
> > @@ -15,9 +15,15 @@
> > */
> >
> > #include "qemu/osdep.h"
> > -
> > #include "libqmp.h"
> >
> > +#include <unistd.h>
> > +#include <stdlib.h>
>
> unistd.h and stdlib.h should have been added by osdep.h already, so please
> remove these two lines.
Right (it will be part of the follow-up series, moving it to a
standalone project). Ack with that?
- Re: [PATCH v2 01/26] Use QEMU_SANITIZE_THREAD, (continued)
- [PATCH v2 02/26] Use QEMU_SANITIZE_ADDRESS, marcandre . lureau, 2022/04/26
- [PATCH v2 04/26] util/win32: simplify qemu_get_local_state_dir(), marcandre . lureau, 2022/04/26
- [PATCH v2 03/26] include: move qemu_*_exec_dir() to cutils, marcandre . lureau, 2022/04/26
- [PATCH v2 06/26] libqtest: split QMP part in libqmp, marcandre . lureau, 2022/04/26
- [PATCH v2 05/26] tests: move libqtest.h back under qtest/, marcandre . lureau, 2022/04/26
- [PATCH v2 07/26] tests: make libqmp buildable for win32, marcandre . lureau, 2022/04/26
- [PATCH v2 08/26] Use g_unix_set_fd_nonblocking(), marcandre . lureau, 2022/04/26
- [PATCH v2 09/26] block: move fcntl_setfl(), marcandre . lureau, 2022/04/26
- [PATCH v2 11/26] util: replace pipe()+cloexec with g_unix_open_pipe(), marcandre . lureau, 2022/04/26
- [PATCH v2 10/26] Replace qemu_pipe() with g_unix_open_pipe(), marcandre . lureau, 2022/04/26
- [PATCH v2 13/26] tests: replace pipe() with g_unix_open_pipe(CLOEXEC), marcandre . lureau, 2022/04/26