From c459ba4a5d4d3283da1b9377ff62b27958bc1b69 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 23 Jul 2012 09:38:48 +0000 Subject: [PATCH] neercs: disable some non-working code on Win32 so that we at least build properly. --- neercs/old/input.c | 2 ++ neercs/old/server.c | 5 +++++ neercs/old/term.c | 3 +++ 3 files changed, 10 insertions(+) diff --git a/neercs/old/input.c b/neercs/old/input.c index d2b40f8..2f53bc3 100644 --- a/neercs/old/input.c +++ b/neercs/old/input.c @@ -76,6 +76,7 @@ int handle_command_input(struct screen_list *screen_list, unsigned int c) { int refresh = 0; +#if !defined _WIN32 debug("Key %x\n", c); screen_list->changed = 1; @@ -191,6 +192,7 @@ int handle_command_input(struct screen_list *screen_list, unsigned int c) break; #endif } +#endif /* _WIN32 */ return refresh; } diff --git a/neercs/old/server.c b/neercs/old/server.c index 56dfe9a..e2c4142 100644 --- a/neercs/old/server.c +++ b/neercs/old/server.c @@ -683,4 +683,9 @@ long long get_us(void) return (tv.tv_sec * (1000000) + tv.tv_usec); } +#else +/* FIXME: unimplemented */ +long long get_us(void) { return 0; } +int send_ansi_sequence(struct screen_list *screen_list, char *str) { return 0; } #endif + diff --git a/neercs/old/term.c b/neercs/old/term.c index 468683e..5c875e5 100644 --- a/neercs/old/term.c +++ b/neercs/old/term.c @@ -136,5 +136,8 @@ int update_terms(struct screen_list *screen_list) return refresh; } +#else +/* FIXME: unimplemented */ +int set_tty_size(int fd, unsigned int w, unsigned int h) { return 0; } #endif