summaryrefslogtreecommitdiff
path: root/ex_subr.c
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-03-02 19:39:44 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-03-02 19:39:44 -0800
commit54de1d6ca94bc0f7ffac6ad721933caf4db46ed5 (patch)
treef4b73f06509db5ad9312fe6095b91a10f38e1f33 /ex_subr.c
parentaf7a7377241af78c70c7badf8ddfc79e55325899 (diff)
changes to compile with musl (avoid sbrk)
Diffstat (limited to 'ex_subr.c')
-rw-r--r--ex_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ex_subr.c b/ex_subr.c
index 663a78e..3d9c090 100644
--- a/ex_subr.c
+++ b/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);