mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 00:46:16 +01:00
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.
This commit is contained in:
parent
efb1a054b0
commit
05354cefc5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user