From f740ad3774c1adc7844451dd561c7de143766635 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 11 Aug 2025 08:56:46 +0000 Subject: fully support NetBSD with its native libcurses * It requires a forced refresh on startup (even though that should be the default). Otherwise, it wouldn't print the info line correctly. * Redirect stdin and pass it to newterm() to fix key queuing. Probably necessary for supporting ncurses on NetBSD as well. * Avoid doupdate() if screen is too small: fixes crashes for very small windows. * Updated Scintilla: There were some implicit typing assumptions, that are broken by this platform. --- src/memory.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/memory.c') diff --git a/src/memory.c b/src/memory.c index 90a5dd8..264c235 100644 --- a/src/memory.c +++ b/src/memory.c @@ -304,6 +304,10 @@ static guint teco_memory_usage = 0; */ #ifdef REPLACE_MALLOC +#ifndef G_ATOMIC_LOCK_FREE +#warning "malloc() replacement will be very slow!" +#endif + void * __attribute__((used)) malloc(size_t size) { -- cgit v1.2.3