diff --git a/src/lib/fbuf.h b/src/lib/fbuf.h index 94086a523..98c3db19a 100644 --- a/src/lib/fbuf.h +++ b/src/lib/fbuf.h @@ -17,6 +17,8 @@ extern "C" { // come after. uses mmap (with huge pages, if possible) on unix and // virtualalloc on windows. it can grow arbitrarily large. it does // *not* maintain a NUL terminator, and can hold binary data. +// on Windows, we're using VirtualAlloc(). on BSD, we're using realloc(). +// on Linux, we're using mmap()+mremap(). typedef struct fbuf { uint64_t size; diff --git a/src/lib/termdesc.c b/src/lib/termdesc.c index a64468163..4bcca083b 100644 --- a/src/lib/termdesc.c +++ b/src/lib/termdesc.c @@ -679,6 +679,8 @@ int interrogate_terminfo(tinfo* ti, int fd, unsigned utf8, unsigned noaltscreen, // FIXME set up pixel-drawing API for framebuffer #1369 } } +#else + (void)nonewfonts; #endif if(fd >= 0){ if(tcgetattr(fd, &ti->tpreserved)){