summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe63646)
raw | patch | inline | side by side (parent: fe63646)
author | Avuton Olrich <avuton@gmail.com> | |
Sun, 30 Oct 2011 02:36:39 +0000 (19:36 -0700) | ||
committer | Avuton Olrich <avuton@gmail.com> | |
Thu, 3 Nov 2011 02:33:51 +0000 (19:33 -0700) |
Win32 doesn't support polling, disabling it for now. Not exactly sure
what this breaks, but win32 appears to run fine with this code disabled.
what this breaks, but win32 appears to run fine with this code disabled.
src/wreadln.c | patch | blob | history |
diff --git a/src/wreadln.c b/src/wreadln.c
index c6dbda7a195b74d62772865b800401de095199e6..44d00028292494d9a5e8f0e35de516d45629cf10 100644 (file)
--- a/src/wreadln.c
+++ b/src/wreadln.c
#include <string.h>
#include <glib.h>
-#if defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE)
+#if (defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE)) && !defined(WIN32)
#include <sys/poll.h>
#endif
wreadln_insert_byte(struct wreadln *wr, gint key)
{
size_t rest = strlen(wr->line + wr->cursor) + 1;
-#if defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE)
+#if (defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE)) && !defined (WIN32)
char buffer[32] = { key };
size_t length = 1;
struct pollfd pfd = {