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 ){ ^

jan.nijtmans 2014-07-10 10:01 trunk
Commit 32205fdc41a725e11e09e35250ba2ac8f024776a
1 file changed +3
--- src/comformat.c
+++ src/comformat.c
@@ -23,10 +23,13 @@
2323
#include <assert.h>
2424
#ifdef _WIN32
2525
# include <windows.h>
2626
#else
2727
# include <termios.h>
28
+# if defined(TIOCGWINSZ)
29
+# include <sys/ioctl.h>
30
+# endif
2831
#endif
2932
3033
/*
3134
** This is the previous value used by most external callers when they
3235
** needed to specify a default maximum line length to be used with the
3336
--- 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

Keyboard Shortcuts

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