diff --git a/main/gbx/gbx_c_process.c b/main/gbx/gbx_c_process.c index 074944675..fe5d31f86 100644 --- a/main/gbx/gbx_c_process.c +++ b/main/gbx/gbx_c_process.c @@ -263,8 +263,10 @@ static void init_child_tty(int fd) tcgetattr(fd, &terminal); terminal.c_iflag |= ICRNL | IXON | IXOFF; + #ifdef IUTF8 if (LOCAL_is_UTF8) terminal.c_iflag |= IUTF8; + #endif terminal.c_oflag |= OPOST; diff --git a/main/gbx/gbx_math.c b/main/gbx/gbx_math.c index e45686eb0..ebc64def6 100644 --- a/main/gbx/gbx_math.c +++ b/main/gbx/gbx_math.c @@ -212,7 +212,7 @@ double exp2(double x) #endif -#if defined(OS_FREEBSD) || defined(OS_OPENBSD) || defined(ARCH_ARM) +#if defined(OS_FREEBSD) || defined(OS_OPENBSD) || defined(ARCH_ARM) || defined(OS_CYGWIN) long double log10l(long double x) {