summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-04 10:08:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-04 10:08:51 +0000
commitab79ee6808a768bc72cd1158f93ba8a50a0615e5 (patch)
tree098c71fcd2806ff9a8bc8820bffbf1e08f6c5f5d /libc/sysdeps/linux/i386
parent0ee72c0b1534e16e6240e99f822b2401cfc1dd4d (diff)
Yet more minor cleanups
Diffstat (limited to 'libc/sysdeps/linux/i386')
-rw-r--r--libc/sysdeps/linux/i386/brk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/i386/brk.c b/libc/sysdeps/linux/i386/brk.c
index eca0e8326..9ae565631 100644
--- a/libc/sysdeps/linux/i386/brk.c
+++ b/libc/sysdeps/linux/i386/brk.c
@@ -21,13 +21,16 @@
#include <unistd.h>
#include <sys/syscall.h>
+#ifndef __ptrvalue
+#define __ptrvalue
+#endif
/* This must be initialized data because commons can't have aliases. */
void *___brk_addr = 0;
int brk (void *addr)
{
- void *__unbounded newbrk, *__unbounded scratch;
+ void *newbrk, *scratch;
asm ("movl %%ebx, %1\n" /* Save %ebx in scratch register. */
"movl %3, %%ebx\n" /* Put ADDR in %ebx to be syscall arg. */