$NetBSD: patch-av,v 1.2 2004/09/11 02:05:01 minskim Exp $ --- csound.c.orig 2003-02-25 21:24:01.000000000 -0600 +++ csound.c @@ -45,6 +45,9 @@ extern "C" { #define WIN32_LEAN_AND_MEAN #include #endif +#ifdef __linux__ +#include +#endif #ifdef __CYGWIN__ #undef __unix @@ -696,10 +699,12 @@ char csoundGetChar(void) if (!tty_attr_set) inchar_tty_init(); /* initialise terminal if not done yet */ /* otherwise poll stdin for input (currently UNIX only) */ + { unsigned char ch; /* IV - Jan 30 2003 */ if ((int) read(0, &ch, 1) > 0 && (int) ch != '\0') c = (char) ch; + } #endif } /* return whatever was read */