From 8e8d7917d5742c7ce42b46681c7c4430a51da505 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Sun, 1 Mar 2026 16:54:44 -0800 Subject: changes to compile with musl (avoid sbrk) --- src/vi/ex-070224/ex_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vi/ex-070224/ex_subr.c') diff --git a/src/vi/ex-070224/ex_subr.c b/src/vi/ex-070224/ex_subr.c index 663a78e..3d9c090 100644 --- a/src/vi/ex-070224/ex_subr.c +++ b/src/vi/ex-070224/ex_subr.c @@ -490,12 +490,12 @@ morelines(void) pg = 4096; pg /= sizeof (line); } - if ((char *)sbrk(pg * sizeof (line)) == (char *)-1) + if ((char *)shim_sbrk(pg * sizeof (line)) == (char *)-1) return (-1); endcore += pg; return (0); #else /* !_SC_PAGESIZE */ - if (sbrk(1024 * sizeof (line)) == (char *)-1) + if (shim_sbrk(1024 * sizeof (line)) == (char *)-1) return (-1); endcore += 1024; return (0); -- cgit v1.2.3