From f019cded83820bc7ea48f58914f243d20286746d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 3 Sep 1999 18:48:46 +0000 Subject: [PATCH] [macintosh]: Set KBD_BUFFER_SIZE to a smaller value (512) because Mac compilers limit local data of a function to 32K. --- src/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index a50322f425..93feb45ca8 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -84,7 +84,12 @@ extern int input_fd; #ifdef HAVE_WINDOW_SYSTEM /* Make all keyboard buffers much bigger when using X windows. */ +#ifdef macintosh +/* But not too big (local data > 32K error) if on macintosh */ +#define KBD_BUFFER_SIZE 512 +#else #define KBD_BUFFER_SIZE 4096 +#endif #else /* No X-windows, character input */ #define KBD_BUFFER_SIZE 256 #endif /* No X-windows */ -- 2.39.2