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/exrecover.c | |
| parent | 66e66f76d8f6d938ca438be761f8187295b5e0b7 (diff) | |
changes to compile with musl (avoid sbrk)
Diffstat (limited to 'src/vi/ex-070224/exrecover.c')
| -rw-r--r-- | src/vi/ex-070224/exrecover.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vi/ex-070224/exrecover.c b/src/vi/ex-070224/exrecover.c index 17ba06f..e2fa677 100644 --- a/src/vi/ex-070224/exrecover.c +++ b/src/vi/ex-070224/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. */ |
