[glib] Make the protocol.c test program compile on Windows
- From: Tor Lillqvist <tml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Make the protocol.c test program compile on Windows
- Date: Tue, 22 Jun 2010 09:43:35 +0000 (UTC)
commit 05354cefc54a0f42e5d7dee1798d2b56c135c12c
Author: Tor Lillqvist <tml iki fi>
Date: Tue Jun 22 12:41:01 2010 +0300
Make the protocol.c test program compile on Windows
Note that it does not actually work, though. Maybe because
g_io_channel_set_flags() is not implemented for file descriptor based
GIOChannels on Windows.
glib/tests/protocol.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/protocol.c b/glib/tests/protocol.c
index 677f385..4d8f63f 100644
--- a/glib/tests/protocol.c
+++ b/glib/tests/protocol.c
@@ -22,7 +22,13 @@
#include <errno.h> /* errno */
#include <glib.h>
+#ifndef _WIN32
#include <unistd.h> /* pipe() */
+#else
+#include <io.h>
+#include <fcntl.h>
+#define pipe(fds) _pipe(fds, 4096, _O_BINARY)
+#endif
static void
debug (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]