diff --git a/sys/arch/arm/include/ansi.h b/sys/arch/arm/include/ansi.h index 0a0acf758..a5a1f5410 100644 --- a/sys/arch/arm/include/ansi.h +++ b/sys/arch/arm/include/ansi.h @@ -31,7 +31,6 @@ * from: @(#)ansi.h 8.2 (Berkeley) 1/4/94 */ - #ifndef _ANSI_H_ #define _ANSI_H_ @@ -49,9 +48,13 @@ * #endif */ #define _BSD_CLOCK_T_ unsigned int /* clock() */ +#if defined(__minix) +/* To change this, this require also changing the defintion of size_t in GCC, + * and to adapt the following headers: int_fmt.h, int_types.h */ #define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ #define _BSD_SIZE_T_ unsigned int /* sizeof() */ #define _BSD_SSIZE_T_ int /* byte count or error */ +#endif /* defined(__minix) */ #define _BSD_TIME_T_ __int64_t /* time() */ #define _BSD_CLOCKID_T_ int /* clockid_t */ #define _BSD_TIMER_T_ int /* timer_t */ diff --git a/sys/arch/arm/include/asm.h b/sys/arch/arm/include/asm.h index f5845cd24..d28bf53d2 100644 --- a/sys/arch/arm/include/asm.h +++ b/sys/arch/arm/include/asm.h @@ -88,12 +88,6 @@ #define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y)) #define ASEND(y) _END(_ASM_LABEL(y)) -#if defined(__minix) -#define _LABEL(x) \ - .globl x; x: -#define LABEL(y) _LABEL(_C_LABEL(y)) -#endif /* defined(__minix) */ - #define ASMSTR .asciz #if defined(PIC) @@ -182,9 +176,13 @@ # define RETc(c) __CONCAT(mov,c) pc, lr #endif -#ifdef __minix +#if defined(__minix) +#define _LABEL(x) \ + .globl x; x: +#define LABEL(y) _LABEL(_C_LABEL(y)) + #define IMPORT(sym) \ .extern _C_LABEL(sym) -#endif +#endif /* defined(__minix) */ #endif /* !_ARM_ASM_H_ */ diff --git a/sys/arch/i386/include/ansi.h b/sys/arch/i386/include/ansi.h index 77a27bd32..cdfafc5ed 100644 --- a/sys/arch/i386/include/ansi.h +++ b/sys/arch/i386/include/ansi.h @@ -31,7 +31,6 @@ * @(#)ansi.h 8.2 (Berkeley) 1/4/94 */ - #ifndef _I386_ANSI_H_ #define _I386_ANSI_H_ diff --git a/sys/arch/i386/include/asm.h b/sys/arch/i386/include/asm.h index a08f4e4e3..1ceb6ea07 100644 --- a/sys/arch/i386/include/asm.h +++ b/sys/arch/i386/include/asm.h @@ -191,7 +191,7 @@ #define __KERNEL_RCSID(_n, _s) RCSID(_s) #endif -#if defined(__ELF__) || defined(__minix) +#ifdef __ELF__ #define WEAK_ALIAS(alias,sym) \ .weak alias; \ alias = sym diff --git a/sys/arch/i386/include/cdefs.h b/sys/arch/i386/include/cdefs.h index 6002b786f..49cbedd73 100644 --- a/sys/arch/i386/include/cdefs.h +++ b/sys/arch/i386/include/cdefs.h @@ -9,9 +9,4 @@ #define __ALIGNBYTES (sizeof(int) - 1) -#if defined(__minix) -#ifndef __ELF__ -#define __LEADING_UNDERSCORE -#endif -#endif /* defined(__minix) */ #endif /* !_I386_CDEFS_H_ */