From c28cabb17933d98c9046d4b2492e39757bbacf5a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 01:20:21 +0200 Subject: Reorder includes and include only what is necessary Use param.h instead of MIN. Use stddef.h instead of offsetof. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/i386/sysdep.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/i386/sysdep.h') diff --git a/libc/sysdeps/linux/i386/sysdep.h b/libc/sysdeps/linux/i386/sysdep.h index b06d392a2..4137b9705 100644 --- a/libc/sysdeps/linux/i386/sysdep.h +++ b/libc/sysdeps/linux/i386/sysdep.h @@ -150,10 +150,6 @@ __x86.get_pc_thunk.reg: \ #undef __i686 #endif /* __ASSEMBLER__ */ -#ifndef offsetof -# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -#endif - /* For Linux we can use the system call table in the header file /usr/include/asm/unistd.h of the kernel. But these symbols do not follow the SYS_* syntax @@ -444,6 +440,7 @@ __x86.get_pc_thunk.reg: \ # define PTR_DEMANGLE(reg) rorl $9, reg; \ xorl %gs:POINTER_GUARD, reg # else +# include # define PTR_MANGLE(var) __asm__ ("xorl %%gs:%c2, %0\n" \ "roll $9, %0" \ : "=r" (var) \ -- cgit v1.2.3