about summary refs log tree commit diff
path: root/src/linux/brk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/brk.c')
-rw-r--r--src/linux/brk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/brk.c b/src/linux/brk.c
index d91ee5a9..ffdbbd52 100644
--- a/src/linux/brk.c
+++ b/src/linux/brk.c
@@ -1,6 +1,7 @@
+#include <errno.h>
 #include "syscall.h"
 
 int brk(void *end)
 {
-	return -(syscall(SYS_brk, end) != (unsigned long)end);
+	return __syscall_ret(-ENOMEM);
 }