diff options
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index a45710b70a55..2732fad03908 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -72,6 +72,7 @@ | |||
72 | #include "types.h" | 72 | #include "types.h" |
73 | #include <sys/ttydefaults.h> | 73 | #include <sys/ttydefaults.h> |
74 | #include <lk/debugfs.h> | 74 | #include <lk/debugfs.h> |
75 | #include <termios.h> | ||
75 | 76 | ||
76 | extern const char *graph_line; | 77 | extern const char *graph_line; |
77 | extern const char *graph_dotted_line; | 78 | extern const char *graph_dotted_line; |
@@ -221,8 +222,8 @@ extern unsigned char sane_ctype[256]; | |||
221 | #define isalpha(x) sane_istest(x,GIT_ALPHA) | 222 | #define isalpha(x) sane_istest(x,GIT_ALPHA) |
222 | #define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT) | 223 | #define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT) |
223 | #define isprint(x) sane_istest(x,GIT_PRINT) | 224 | #define isprint(x) sane_istest(x,GIT_PRINT) |
224 | #define islower(x) (sane_istest(x,GIT_ALPHA) && sane_istest(x,0x20)) | 225 | #define islower(x) (sane_istest(x,GIT_ALPHA) && (x & 0x20)) |
225 | #define isupper(x) (sane_istest(x,GIT_ALPHA) && !sane_istest(x,0x20)) | 226 | #define isupper(x) (sane_istest(x,GIT_ALPHA) && !(x & 0x20)) |
226 | #define tolower(x) sane_case((unsigned char)(x), 0x20) | 227 | #define tolower(x) sane_case((unsigned char)(x), 0x20) |
227 | #define toupper(x) sane_case((unsigned char)(x), 0) | 228 | #define toupper(x) sane_case((unsigned char)(x), 0) |
228 | 229 | ||
@@ -274,6 +275,5 @@ void dump_stack(void); | |||
274 | 275 | ||
275 | extern unsigned int page_size; | 276 | extern unsigned int page_size; |
276 | 277 | ||
277 | struct winsize; | ||
278 | void get_term_dimensions(struct winsize *ws); | 278 | void get_term_dimensions(struct winsize *ws); |
279 | #endif /* GIT_COMPAT_UTIL_H */ | 279 | #endif /* GIT_COMPAT_UTIL_H */ |