diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-03-01 16:54:44 -0800 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-03-01 16:54:44 -0800 |
| commit | 8e8d7917d5742c7ce42b46681c7c4430a51da505 (patch) | |
| tree | 3a862b1e565e077d27181ff8ddefaf3b14559732 /src/vi/ex-070224/ex_subr.c | |
| parent | 66e66f76d8f6d938ca438be761f8187295b5e0b7 (diff) | |
changes to compile with musl (avoid sbrk)
Diffstat (limited to 'src/vi/ex-070224/ex_subr.c')
| -rw-r--r-- | src/vi/ex-070224/ex_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
