Add missing build dependency

This commit is contained in:
Justine Tunney 2024-01-03 17:04:21 -08:00
parent 31dcdefaa8
commit 1bb52c223b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 3 additions and 1 deletions

View file

@ -164,6 +164,7 @@ libc/isystem/semaphore.h \
libc/isystem/set \
libc/isystem/setjmp.h \
libc/isystem/sgxintrin.h \
libc/isystem/shadow.h \
libc/isystem/shared_mutex \
libc/isystem/signal.h \
libc/isystem/smmintrin.h \

View file

@ -33,7 +33,8 @@ void __paginate(int fd, const char *s) {
char progpath[PATH_MAX];
if (strcmp(nulltoempty(getenv("TERM")), "dumb") && isatty(0) && isatty(1) &&
((args[0] = commandv("less", progpath, sizeof(progpath))) ||
(args[0] = commandv("more", progpath, sizeof(progpath))))) {
(args[0] = commandv("more", progpath, sizeof(progpath))) ||
(args[0] = commandv("more.exe", progpath, sizeof(progpath))))) {
if ((tfd = mkstemp(tmppath)) != -1) {
write(tfd, s, strlen(s));
close(tfd);