about summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
authorgco <gco@jazzhaiku.com>2022-06-10 20:11:53 -0700
committerLeah Neukirchen <leah@vuxu.org>2022-06-20 16:08:12 +0200
commite6813fd07cb102f5e0826bf33560d4cfa255073a (patch)
tree32870b6c9e42e4bd8504822497f03372262c1378 /mscan.c
parent877569a6f3810a3ef8672bd9c056f313e77d2ea1 (diff)
downloadmblaze-e6813fd07cb102f5e0826bf33560d4cfa255073a.tar.gz
mblaze-e6813fd07cb102f5e0826bf33560d4cfa255073a.tar.xz
mblaze-e6813fd07cb102f5e0826bf33560d4cfa255073a.zip
solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize
Diffstat (limited to 'mscan.c')
-rw-r--r--mscan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mscan.c b/mscan.c
index 52ba9a4..0494409 100644
--- a/mscan.c
+++ b/mscan.c
@@ -1,6 +1,9 @@
 #ifndef _XOPEN_SOURCE
 #define _XOPEN_SOURCE 700
 #endif
+#ifdef __sun
+#define __EXTENSIONS__ /* to get TIOCGWINSZ */
+#endif
 
 #include "xpledge.h"
 
@@ -19,6 +22,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <wchar.h>
+#include <termios.h>
 
 #include "blaze822.h"
 #include "u8decode.h"