Fossil SCM

Include termio.h to determine terminal width on OmniOS. Uses __EXTENSIONS__ in line with detection of solaris like systems in auto.def.

preben 2023-12-03 20:28 trunk
Commit 32428f126fdfd0fd1779b12f7679b47af00d8ea679c4a9e9098cc4a8d288d724
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