projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix double-processing of DT_RELR relocations in ldso relocating itself
[musl]
/
src
/
linux
/
brk.c
diff --git
a/src/linux/brk.c
b/src/linux/brk.c
index
3c2982c
..
a6173e0
100644
(file)
--- a/
src/linux/brk.c
+++ b/
src/linux/brk.c
@@
-1,6
+1,9
@@
+#define _BSD_SOURCE
+#include <unistd.h>
+#include <errno.h>
#include "syscall.h"
int brk(void *end)
{
- return
-(syscall1(__NR_brk, (long)end) == -1
);
+ return
__syscall_ret(-ENOMEM
);
}