summaryrefslogtreecommitdiffstats
path: root/os-win32.c
diff options
context:
space:
mode:
authorPeter Maydell2019-12-17 16:55:20 +0100
committerPeter Maydell2019-12-17 16:55:20 +0100
commitaceeaa69d28e6f08a24395d0aa6915b687d0a681 (patch)
treed41f95a304e7f984455b8fac4992cf0d2e000dcc /os-win32.c
parentMerge remote-tracking branch 'remotes/cleber/tags/python-next-pull-request' i... (diff)
parenttests: use g_test_rand_int (diff)
downloadqemu-aceeaa69d28e6f08a24395d0aa6915b687d0a681.tar.gz
qemu-aceeaa69d28e6f08a24395d0aa6915b687d0a681.tar.xz
qemu-aceeaa69d28e6f08a24395d0aa6915b687d0a681.zip
Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-12-17' into staging
* Removal of the deprecated bluetooth code * Some qtest and misc patches # gpg: Signature made Tue 17 Dec 2019 08:09:08 GMT # gpg: using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5 # gpg: issuer "thuth@redhat.com" # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full] # gpg: aka "Thomas Huth <thuth@redhat.com>" [full] # gpg: aka "Thomas Huth <huth@tuxfamily.org>" [full] # gpg: aka "Thomas Huth <th.huth@posteo.de>" [unknown] # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3 EAB9 2ED9 D774 FE70 2DB5 * remotes/huth-gitlab/tags/pull-request-2019-12-17: tests: use g_test_rand_int tests/Makefile: Fix check-report.* targets shown in check-help glib: use portable g_setenv() hw/misc/ivshmem: Bury dead legacy INTx code pseries: disable migration-test if /dev/kvm cannot be used tests: fix modules-test 'duplicate test case' error Remove libbluetooth / bluez from the CI tests Remove the core bluetooth code hw/usb: Remove the USB bluetooth dongle device hw/arm/nseries: Replace the bluetooth chardev with a "null" chardev Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'os-win32.c')
-rw-r--r--os-win32.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/os-win32.c b/os-win32.c
index 1336cd34f0..6b86e022f0 100644
--- a/os-win32.c
+++ b/os-win32.c
@@ -30,28 +30,6 @@
#include "qemu-options.h"
#include "sysemu/runstate.h"
-/***********************************************************/
-/* Functions missing in mingw */
-
-int setenv(const char *name, const char *value, int overwrite)
-{
- int result = 0;
- if (overwrite || !getenv(name)) {
- size_t length = strlen(name) + strlen(value) + 2;
- char *string = g_malloc(length);
- snprintf(string, length, "%s=%s", name, value);
- result = putenv(string);
-
- /* Windows takes a copy and does not continue to use our string.
- * Therefore it can be safely freed on this platform. POSIX code
- * typically has to leak the string because according to the spec it
- * becomes part of the environment.
- */
- g_free(string);
- }
- return result;
-}
-
static BOOL WINAPI qemu_ctrl_handler(DWORD type)
{
qemu_system_shutdown_request(SHUTDOWN_CAUSE_HOST_SIGNAL);