Fossil SCM
./src/comformat.c: In function ‘comment_print’: ./src/comformat.c:70:5: warning: implicit declaration of function ‘ioctl’ [-Werror=implicit-function-declaration] if( ioctl(0, TIOCGWINSZ, &w)!=-1 ){ ^
Commit
32205fdc41a725e11e09e35250ba2ac8f024776a
Parent
604a355811f04b0…
1 file changed
+3
+3
| --- src/comformat.c | ||
| +++ src/comformat.c | ||
| @@ -23,10 +23,13 @@ | ||
| 23 | 23 | #include <assert.h> |
| 24 | 24 | #ifdef _WIN32 |
| 25 | 25 | # include <windows.h> |
| 26 | 26 | #else |
| 27 | 27 | # include <termios.h> |
| 28 | +# if defined(TIOCGWINSZ) | |
| 29 | +# include <sys/ioctl.h> | |
| 30 | +# endif | |
| 28 | 31 | #endif |
| 29 | 32 | |
| 30 | 33 | /* |
| 31 | 34 | ** This is the previous value used by most external callers when they |
| 32 | 35 | ** needed to specify a default maximum line length to be used with the |
| 33 | 36 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -23,10 +23,13 @@ | |
| 23 | #include <assert.h> |
| 24 | #ifdef _WIN32 |
| 25 | # include <windows.h> |
| 26 | #else |
| 27 | # include <termios.h> |
| 28 | #endif |
| 29 | |
| 30 | /* |
| 31 | ** This is the previous value used by most external callers when they |
| 32 | ** needed to specify a default maximum line length to be used with the |
| 33 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -23,10 +23,13 @@ | |
| 23 | #include <assert.h> |
| 24 | #ifdef _WIN32 |
| 25 | # include <windows.h> |
| 26 | #else |
| 27 | # include <termios.h> |
| 28 | # if defined(TIOCGWINSZ) |
| 29 | # include <sys/ioctl.h> |
| 30 | # endif |
| 31 | #endif |
| 32 | |
| 33 | /* |
| 34 | ** This is the previous value used by most external callers when they |
| 35 | ** needed to specify a default maximum line length to be used with the |
| 36 |