summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs <thijs@thijsschreijer.nl>2024-06-24 20:21:37 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-06-25 08:36:52 +0200
commita7ed5242a797383b82bd48e1fe6fc20d544ed6e0 (patch)
tree949360d3db8c74e70878191975280274ba7bdeb0
parentbb4fd73c317cc88beb5e58c1abf52138abed107f (diff)
downloadluasystem-a7ed5242a797383b82bd48e1fe6fc20d544ed6e0.zip
fix(*): msys2 requires conio.h header
-rw-r--r--src/term.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index d8cc38e..3db8d0c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -12,13 +12,14 @@
#include "compat.h"
#include "bitflags.h"
-#ifndef _MSC_VER
-# include <unistd.h>
-#endif
#ifdef _WIN32
# include <windows.h>
# include <locale.h>
+# ifndef _MSC_VER
+# include <conio.h>
+# include <unistd.h>
+# endif
#else
# include <termios.h>
# include <string.h>