Chez Scheme: more repairs to avoid xlocale and an old-compiler warning
This commit is contained in:
parent
0a6b8356c1
commit
614992a65c
|
@ -553,7 +553,7 @@ static void s_ee_write_char(wchar_t c) {
|
|||
#include <sys/ioctl.h>
|
||||
#include <wchar.h>
|
||||
#include <locale.h>
|
||||
#if !defined(__GLIBC__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__linux__)
|
||||
#if !defined(__GLIBC__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__linux__) && !defined(NO_USELOCALE)
|
||||
# include <xlocale.h>
|
||||
#endif
|
||||
|
||||
|
@ -712,7 +712,8 @@ static ptr s_ee_read_char(IBOOL blockp) {
|
|||
return Schar(wch);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
sz = 0;
|
||||
|
||||
} while ((n < 0 && errno == EINTR) || (n == 1 && sz == (size_t)-2));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user