summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/sbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/sbrk.c')
-rw-r--r--libc/sysdeps/linux/common/sbrk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/sbrk.c b/libc/sysdeps/linux/common/sbrk.c
index f8b568262..4ac2d2a21 100644
--- a/libc/sysdeps/linux/common/sbrk.c
+++ b/libc/sysdeps/linux/common/sbrk.c
@@ -7,16 +7,15 @@
#include <unistd.h>
#include <errno.h>
-libc_hidden_proto(sbrk)
-
libc_hidden_proto(brk)
/* Defined in brk.c. */
-extern void *__curbrk;
+extern void *__curbrk attribute_hidden;
/* Extend the process's data space by INCREMENT.
If INCREMENT is negative, shrink data space by - INCREMENT.
Return start of new space allocated, or -1 for errors. */
+libc_hidden_proto(sbrk)
void * sbrk (intptr_t increment)
{
void *oldbrk;