mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
Fix build break in MODE=asan
This commit is contained in:
parent
c9f966d73c
commit
15c59e716f
2 changed files with 5 additions and 4 deletions
|
@ -105,12 +105,14 @@ o//libc/calls/fcntl.o: \
|
|||
OVERRIDE_CFLAGS += \
|
||||
-Os
|
||||
|
||||
# must use alloca()
|
||||
# must use alloca() or path_max*2*2
|
||||
o/$(MODE)/libc/calls/execl.o \
|
||||
o/$(MODE)/libc/calls/execle.o \
|
||||
o/$(MODE)/libc/calls/execlp.o \
|
||||
o/$(MODE)/libc/calls/copyfile.o \
|
||||
o/$(MODE)/libc/calls/execve-nt.o \
|
||||
o/$(MODE)/libc/calls/linkat-nt.o \
|
||||
o/$(MODE)/libc/calls/renameat-nt.o \
|
||||
o/$(MODE)/libc/calls/execve-sysv.o \
|
||||
o/$(MODE)/libc/calls/symlinkat-nt.o \
|
||||
o/$(MODE)/libc/calls/readlinkat-nt.o \
|
||||
|
|
5
third_party/linenoise/linenoise.c
vendored
5
third_party/linenoise/linenoise.c
vendored
|
@ -16,7 +16,6 @@
|
|||
│ - Add CTRL-R search │
|
||||
│ - Support unlimited lines │
|
||||
│ - React to terminal resizing │
|
||||
│ - Don't generate .data section │
|
||||
│ - Support terminal flow control │
|
||||
│ - Make history loading 10x faster │
|
||||
│ - Make multiline mode the only mode │
|
||||
|
@ -686,8 +685,7 @@ int linenoiseEnableRawMode(int fd) {
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
errno = ENOTTY;
|
||||
return -1;
|
||||
return enotty();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
@ -1603,6 +1601,7 @@ static size_t linenoiseEscape(char *d, const char *s, size_t n) {
|
|||
unsigned c, w, l;
|
||||
for (p = d, l = i = 0; i < n; ++i) {
|
||||
switch ((c = s[i] & 255)) {
|
||||
CASE('\e', w = READ16LE("\\e"));
|
||||
CASE('\a', w = READ16LE("\\a"));
|
||||
CASE('\b', w = READ16LE("\\b"));
|
||||
CASE('\t', w = READ16LE("\\t"));
|
||||
|
|
Loading…
Reference in a new issue