[gtk/wip.win32.fixes: 2/2] clipboard-client.c: Include necessary headers for Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip.win32.fixes: 2/2] clipboard-client.c: Include necessary headers for Windows
- Date: Mon, 3 May 2021 10:41:49 +0000 (UTC)
commit 3db5f762bcd4d5c9fe1f25695eab2cc4d2b207ad
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon May 3 16:33:14 2021 +0800
clipboard-client.c: Include necessary headers for Windows
We need to include io.h and process.h for close() and exit(), as unistd.h may
not be universally available.
testsuite/gdk/clipboard-client.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/testsuite/gdk/clipboard-client.c b/testsuite/gdk/clipboard-client.c
index d9f8ff2f9d..b27da92205 100644
--- a/testsuite/gdk/clipboard-client.c
+++ b/testsuite/gdk/clipboard-client.c
@@ -4,6 +4,10 @@
#include "wayland/gdkwayland.h"
#endif
+#ifdef G_OS_WIN32
+#include <io.h>
+#include <process.h>
+#endif
G_GNUC_NORETURN static void
got_string_cb (GObject *source,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]