mirror of
https://github.com/janet-lang/janet
synced 2025-02-03 02:39:09 +00:00
Fix minimum meson build.
This commit is contained in:
parent
4721337c7c
commit
c97d3cf359
@ -17,7 +17,7 @@ tasks:
|
|||||||
meson configure -Dpeg=false
|
meson configure -Dpeg=false
|
||||||
meson configure -Dassembler=false
|
meson configure -Dassembler=false
|
||||||
meson configure -Dint_types=false
|
meson configure -Dint_types=false
|
||||||
meson configure -Dtyped_arrays=false
|
meson configure -Dtyped_array=false
|
||||||
meson configure -Dreduced_os=true
|
meson configure -Dreduced_os=true
|
||||||
meson configure -Dprf=false
|
meson configure -Dprf=false
|
||||||
ninja # will not pass tests but should build
|
ninja # will not pass tests but should build
|
||||||
|
@ -169,7 +169,9 @@ static char *sdup(const char *s) {
|
|||||||
/* Ansi terminal raw mode */
|
/* Ansi terminal raw mode */
|
||||||
static int rawmode(void) {
|
static int rawmode(void) {
|
||||||
struct termios t;
|
struct termios t;
|
||||||
|
#ifndef JANET_SINGLE_THREADED
|
||||||
pthread_mutex_lock(&gbl_lock);
|
pthread_mutex_lock(&gbl_lock);
|
||||||
|
#endif
|
||||||
if (!isatty(STDIN_FILENO)) goto fatal;
|
if (!isatty(STDIN_FILENO)) goto fatal;
|
||||||
if (tcgetattr(STDIN_FILENO, &gbl_termios_start) == -1) goto fatal;
|
if (tcgetattr(STDIN_FILENO, &gbl_termios_start) == -1) goto fatal;
|
||||||
t = gbl_termios_start;
|
t = gbl_termios_start;
|
||||||
@ -183,7 +185,9 @@ static int rawmode(void) {
|
|||||||
return 0;
|
return 0;
|
||||||
fatal:
|
fatal:
|
||||||
errno = ENOTTY;
|
errno = ENOTTY;
|
||||||
|
#ifndef JANET_SINGLE_THREADED
|
||||||
pthread_mutex_unlock(&gbl_lock);
|
pthread_mutex_unlock(&gbl_lock);
|
||||||
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,7 +195,9 @@ fatal:
|
|||||||
static void norawmode(void) {
|
static void norawmode(void) {
|
||||||
if (gbl_israwmode && tcsetattr(STDIN_FILENO, TCSAFLUSH, &gbl_termios_start) != -1)
|
if (gbl_israwmode && tcsetattr(STDIN_FILENO, TCSAFLUSH, &gbl_termios_start) != -1)
|
||||||
gbl_israwmode = 0;
|
gbl_israwmode = 0;
|
||||||
|
#ifndef JANET_SINGLE_THREADED
|
||||||
pthread_mutex_unlock(&gbl_lock);
|
pthread_mutex_unlock(&gbl_lock);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int curpos(void) {
|
static int curpos(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user