summaryrefslogtreecommitdiff
path: root/ex.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.c
parentaf7a7377241af78c70c7badf8ddfc79e55325899 (diff)
changes to compile with musl (avoid sbrk)
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ex.c b/ex.c
index a6b5121..caf88f2 100644
--- a/ex.c
+++ b/ex.c
@@ -87,6 +87,7 @@ static char sccsid[] = "@(#)ex.c 1.37 (gritter) 8/4/05";
#include "ex_argv.h"
#include "ex_temp.h"
#include "ex_tty.h"
+#include "brk_shim.h"
#ifdef TRACE
char tttrace[] = { '/','d','e','v','/','t','t','y','x','x',0 };
@@ -529,7 +530,7 @@ argend:
* this as ed does, saving a little core, but it will probably
* not often make much difference.
*/
- fendcore = (line *) sbrk(0);
+ fendcore = (line *) shim_sbrk(0);
endcore = fendcore - 2;
#ifdef SIGTSTP