Fossil SCM

Include termio.h to let OmniOS and OpenIndiana determine terminal width.

preben 2024-01-03 14:41 trunk merge
Commit a8780e4143a8147e7e9a81e64ad6e4da83aa317e9db6bd0cc96d3b7ac19e3034
1 file changed +3
--- src/terminal.c
+++ src/terminal.c
@@ -22,10 +22,13 @@
2222
#include "terminal.h"
2323
#include <assert.h>
2424
#ifdef _WIN32
2525
# include <windows.h>
2626
#else
27
+#ifdef __EXTENSIONS__
28
+#include <termio.h>
29
+#endif
2730
#include <sys/ioctl.h>
2831
#include <stdio.h>
2932
#include <unistd.h>
3033
#endif
3134
3235
--- src/terminal.c
+++ src/terminal.c
@@ -22,10 +22,13 @@
22 #include "terminal.h"
23 #include <assert.h>
24 #ifdef _WIN32
25 # include <windows.h>
26 #else
 
 
 
27 #include <sys/ioctl.h>
28 #include <stdio.h>
29 #include <unistd.h>
30 #endif
31
32
--- src/terminal.c
+++ src/terminal.c
@@ -22,10 +22,13 @@
22 #include "terminal.h"
23 #include <assert.h>
24 #ifdef _WIN32
25 # include <windows.h>
26 #else
27 #ifdef __EXTENSIONS__
28 #include <termio.h>
29 #endif
30 #include <sys/ioctl.h>
31 #include <stdio.h>
32 #include <unistd.h>
33 #endif
34
35

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button