Fossil SCM
Include termio.h to determine terminal width on OmniOS. Uses __EXTENSIONS__ in line with detection of solaris like systems in auto.def.
Commit
32428f126fdfd0fd1779b12f7679b47af00d8ea679c4a9e9098cc4a8d288d724
Parent
a8b6fdc83e8b539…
1 file changed
+3
+3
| --- src/terminal.c | ||
| +++ src/terminal.c | ||
| @@ -22,10 +22,13 @@ | ||
| 22 | 22 | #include "terminal.h" |
| 23 | 23 | #include <assert.h> |
| 24 | 24 | #ifdef _WIN32 |
| 25 | 25 | # include <windows.h> |
| 26 | 26 | #else |
| 27 | +#ifdef __EXTENSIONS__ | |
| 28 | +#include <termio.h> | |
| 29 | +#endif | |
| 27 | 30 | #include <sys/ioctl.h> |
| 28 | 31 | #include <stdio.h> |
| 29 | 32 | #include <unistd.h> |
| 30 | 33 | #endif |
| 31 | 34 | |
| 32 | 35 |
| --- 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 |