Fossil SCM
Include termio.h to let OmniOS and OpenIndiana determine terminal width.
Commit
a8780e4143a8147e7e9a81e64ad6e4da83aa317e9db6bd0cc96d3b7ac19e3034
Parent
109cf725b1dee65…
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 |