diff options
Diffstat (limited to 'src/include/port/linux.h')
-rw-r--r-- | src/include/port/linux.h | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/src/include/port/linux.h b/src/include/port/linux.h index 99d8eb65aef..b04e45bebab 100644 --- a/src/include/port/linux.h +++ b/src/include/port/linux.h @@ -4,31 +4,34 @@ __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to be used. */ -# define JMP_BUF -# define USE_POSIX_TIME -# define USE_POSIX_SIGNALS -# define NEED_I386_TAS_ASM -# define HAS_TEST_AND_SET - -# if defined(PPC) - typedef unsigned int slock_t; -# endif - -# if defined(PPC) -# undef NEED_I386_TAS_ASM -# undef HAVE_INT_TIMEZONE -# endif - -# if defined(sparc) -# undef NEED_I386_TAS_ASM -# endif - - -# if defined(__alpha__) -# undef NEED_I386_TAS_ASM -# endif -# if defined(__alpha__) - typedef long int slock_t; -# else - typedef unsigned char slock_t; -# endif +#define JMP_BUF +#define USE_POSIX_TIME +#define USE_POSIX_SIGNALS +#define NEED_I386_TAS_ASM +#define HAS_TEST_AND_SET + +#if defined(PPC) +typedef unsigned int slock_t; + +#endif + +#if defined(PPC) +#undef NEED_I386_TAS_ASM +#undef HAVE_INT_TIMEZONE +#endif + +#if defined(sparc) +#undef NEED_I386_TAS_ASM +#endif + + +#if defined(__alpha__) +#undef NEED_I386_TAS_ASM +#endif +#if defined(__alpha__) +typedef long int slock_t; + +#else +typedef unsigned char slock_t; + +#endif |