All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.7] wxx: Fix broken build (mkdtemp unavailable)
@ 2016-08-23 18:11 Stefan Weil
  2016-08-23 19:00 ` Sascha Silbe
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Weil @ 2016-08-23 18:11 UTC (permalink / raw)
  To: QEMU Developer; +Cc: Peter Maydell, Sascha Silbe, Stefan Weil

Commit 50455700092412d90ffaf57ee5d00f38f7d1cc5b added new code which
does not compile for Windows.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 include/glib-compat.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/glib-compat.h b/include/glib-compat.h
index 8d5a7f3..3e025ca 100644
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -48,6 +48,7 @@ static inline gint64 qemu_g_get_monotonic_time(void)
 gint g_poll_fixed(GPollFD *fds, guint nfds, gint timeout);
 #endif
 
+#if !defined(_WIN32)
 #if !GLIB_CHECK_VERSION(2, 30, 0)
 /* Not a 100% compatible implementation, but good enough for most
  * cases. Placeholders are only supported at the end of the
@@ -65,8 +66,10 @@ static inline gchar *qemu_g_dir_make_tmp(gchar const *tmpl, GError **error)
     g_free(path);
     return NULL;
 }
+
 #define g_dir_make_tmp(tmpl, error) qemu_g_dir_make_tmp(tmpl, error)
 #endif /* glib 2.30 */
+#endif /* !_WIN32 */
 
 #if !GLIB_CHECK_VERSION(2, 31, 0)
 /* before glib-2.31, GMutex and GCond was dynamic-only (there was a separate
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-30 11:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 18:11 [Qemu-devel] [PATCH for-2.7] wxx: Fix broken build (mkdtemp unavailable) Stefan Weil
2016-08-23 19:00 ` Sascha Silbe
2016-08-23 19:23   ` Stefan Weil
2016-08-23 20:01     ` Sascha Silbe
2016-08-25 14:36       ` Peter Maydell
2016-08-25 14:46         ` Peter Maydell
2016-08-29 15:27           ` Sascha Silbe
2016-08-29 17:51             ` Stefan Weil
2016-08-30 11:01               ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.