From a08052bc248632f8c16ef0c5b93e0611543e89cc Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Mon, 22 Apr 2019 18:04:47 -0300 Subject: qtest: Don't compile qtest accel on non-POSIX systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qtest_available() will always return 0 on non-POSIX systems. It's simpler to just not compile the accelerator code on those systems instead of relying on the AccelClass::available function. Signed-off-by: Eduardo Habkost Message-Id: <20190422210448.2488-3-ehabkost@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [on mingw64] Reviewed-by: Thomas Huth Signed-off-by: Thomas Huth --- include/sysemu/qtest.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') diff --git a/include/sysemu/qtest.h b/include/sysemu/qtest.h index 70aa40a..096ddfc 100644 --- a/include/sysemu/qtest.h +++ b/include/sysemu/qtest.h @@ -27,13 +27,4 @@ bool qtest_driver(void); void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp); -static inline int qtest_available(void) -{ -#ifdef CONFIG_POSIX - return 1; -#else - return 0; -#endif -} - #endif -- cgit v1.1