diff options
author | Thomas Huth <thuth@redhat.com> | 2020-09-02 13:17:24 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-09-07 12:34:17 +0200 |
commit | 8c2787629eee73ca8ce4f100cff4f4946583b4e8 (patch) | |
tree | 481dea6366977d060266d740d1106d049b31b6dd /util | |
parent | b0476d6602adbf818132dc896b585e01f47eaf96 (diff) | |
download | qemu-8c2787629eee73ca8ce4f100cff4f4946583b4e8.zip qemu-8c2787629eee73ca8ce4f100cff4f4946583b4e8.tar.gz qemu-8c2787629eee73ca8ce4f100cff4f4946583b4e8.tar.bz2 |
stubs: Move qemu_fd_register stub to util/main-loop.c
The linker of MinGW sometimes runs into the following problem:
libqemuutil.a(util_main-loop.c.obj): In function `qemu_fd_register':
/builds/huth/qemu/build/../util/main-loop.c:331: multiple definition of
`qemu_fd_register'
libqemuutil.a(stubs_fd-register.c.obj):/builds/huth/qemu/stubs/fd-register.c:5:
first defined here
collect2: error: ld returned 1 exit status
/builds/huth/qemu/rules.mak:88: recipe for target 'tests/test-timed-average.exe'
failed
qemu_fd_register() is defined in util/main-loop.c for WIN32, so let's simply
move the stub also there in the #else part of the corresponding #ifndef
to fix this problem.
Message-Id: <20200903054503.425435-1-thuth@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/main-loop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/main-loop.c b/util/main-loop.c index f69f055..217c8d6 100644 --- a/util/main-loop.c +++ b/util/main-loop.c @@ -179,6 +179,10 @@ static int max_priority; static int glib_pollfds_idx; static int glib_n_poll_fds; +void qemu_fd_register(int fd) +{ +} + static void glib_pollfds_fill(int64_t *cur_timeout) { GMainContext *context = g_main_context_default(); |