vcpkg/ports/libxkbcommon/build.patch
Alexander Neumann 6eb35f5af3
[xwindow] part 3/n ()
* [xcb-render-util] add port

* [libxkbfile] add port

* [libxkbcommon] add port

* v db

* Apply suggestions from code review

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>

* v db

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
2022-08-31 16:20:31 -07:00

28 lines
624 B
Diff

diff --git a/tools/how-to-type.c b/tools/how-to-type.c
index 0a6f79e68..c1205004d 100644
--- a/tools/how-to-type.c
+++ b/tools/how-to-type.c
@@ -25,8 +25,10 @@
#include <getopt.h>
#include <stdbool.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
#include "xkbcommon/xkbcommon.h"
diff --git a/tools/tools-common.c b/tools/tools-common.c
index 254499d8c..2465a88c2 100644
--- a/tools/tools-common.c
+++ b/tools/tools-common.c
@@ -42,6 +42,7 @@
#ifdef _MSC_VER
#include <io.h>
#include <windows.h>
+#include <process.h>
#else
#include <unistd.h>
#include <termios.h>