From: Ben Gras Date: Thu, 1 Sep 2005 13:07:08 +0000 (+0000) Subject: Joren l'Ami's fixes to includes for gcc X-Git-Tag: v3.1.0~214 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/sign.html?a=commitdiff_plain;h=3f6cd154a24bfcea6d0b6d3a2c73d5d163b99940;p=minix.git Joren l'Ami's fixes to includes for gcc --- diff --git a/include/minix/sys_config.h b/include/minix/sys_config.h index cf6cec161..7a86e076f 100755 --- a/include/minix/sys_config.h +++ b/include/minix/sys_config.h @@ -13,7 +13,7 @@ #define _MACHINE_MACINTOSH 62 /* Apple Macintosh (68000) */ /* Word size in bytes (a constant equal to sizeof(int)). */ -#if __ACK__ +#if __ACK__ || __GNUC__ #define _WORD_SIZE _EM_WSIZE #define _PTR_SIZE _EM_WSIZE #endif diff --git a/include/setjmp.h b/include/setjmp.h index 970d1c4af..31a879533 100755 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -84,7 +84,7 @@ #define _SETJMP_SAVES_REGS 1 #endif #ifdef __GNUC__ -#define _SETJMP_SYMBOL 0 +#define _SETJMP_SYMBOL 1 #define _SETJMP_SAVES_REGS 1 #endif @@ -119,7 +119,11 @@ _PROTOTYPE(void _longjmp, (jmp_buf _env, int _val) ); #ifdef _POSIX_SOURCE typedef jmp_buf sigjmp_buf; +#ifdef __GNUC__ +#define siglongjmp longjmp +#else _PROTOTYPE( void siglongjmp, (sigjmp_buf _env, int _val) ); +#endif #define sigsetjmp(env, savemask) __setjmp((env), (savemask)) #endif /* _POSIX_SOURCE */ diff --git a/include/stdio.h b/include/stdio.h index 2a8dd676c..1e83bbc48 100755 --- a/include/stdio.h +++ b/include/stdio.h @@ -36,6 +36,7 @@ typedef struct __iobuf { #define _IOREADING 0x080 #define _IOWRITING 0x100 #define _IOAPPEND 0x200 +#define _IOFIFO 0x400 /* The following definitions are also in . They should not * conflict.