summaryrefslogtreecommitdiff
path: root/exrecover.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 /exrecover.c
parentaf7a7377241af78c70c7badf8ddfc79e55325899 (diff)
changes to compile with musl (avoid sbrk)
Diffstat (limited to 'exrecover.c')
-rw-r--r--exrecover.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/exrecover.c b/exrecover.c
index 17ba06f..e2fa677 100644
--- a/exrecover.c
+++ b/exrecover.c
@@ -106,6 +106,7 @@ extern int vsprintf(char *, const char *, va_list);
#include "ex.h"
#include "ex_temp.h"
#include "ex_tty.h"
+#include "brk_shim.h"
#include <dirent.h>
#include <time.h>
@@ -220,7 +221,7 @@ main(int argc, char *argv[])
/*
* Initialize as though the editor had just started.
*/
- fendcore = (line *) sbrk(0);
+ fendcore = (line *) shim_sbrk(0);
dot = zero = dol = fendcore;
one = zero + 1;
endcore = fendcore - 2;
@@ -259,7 +260,7 @@ main(int argc, char *argv[])
/*
* Allocate space for the line pointers from the temp file.
*/
- if ((char *) sbrk(H.Flines * sizeof (line)) == (char *) -1)
+ if ((char *) shim_sbrk(H.Flines * sizeof (line)) == (char *) -1)
/*
* Good grief.
*/