From 16f4df8b52de1df0f810e157d9711caa75115e28 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 2 Nov 2005 16:13:41 +0000 Subject: Allow sources using syscalls to be IMA compiled on x86 --- libc/sysdeps/linux/i386/bits/syscalls.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/i386/bits/syscalls.h b/libc/sysdeps/linux/i386/bits/syscalls.h index 944fb734a..e9f9e7885 100644 --- a/libc/sysdeps/linux/i386/bits/syscalls.h +++ b/libc/sysdeps/linux/i386/bits/syscalls.h @@ -30,6 +30,8 @@ asm (".L__X'%ebx = 1\n\t" ".L__X'%edi = 3\n\t" ".L__X'%ebp = 3\n\t" ".L__X'%esp = 3\n\t" + ".ifndef _BITS_SYSCALLS_ASM\n\t" + ".set _BITS_SYSCALLS_ASM,1\n\t" ".macro bpushl name reg\n\t" ".if 1 - \\name\n\t" ".if 2 - \\name\n\t" @@ -54,7 +56,8 @@ asm (".L__X'%ebx = 1\n\t" "movl \\reg, %ebx\n\t" ".endif\n\t" ".endif\n\t" - ".endm\n\t"); + ".endm\n\t" + ".endif\n\t"); #undef _syscall0 -- cgit v1.2.3