diff options
Diffstat (limited to 'src/include/port/freebsd.h')
-rw-r--r-- | src/include/port/freebsd.h | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/include/port/freebsd.h b/src/include/port/freebsd.h index a884b9da0d9..aba5c72fe62 100644 --- a/src/include/port/freebsd.h +++ b/src/include/port/freebsd.h @@ -1,37 +1,47 @@ #if defined(__i386__) -typedef unsigned char slock_t; - +#define NEED_I386_TAS_ASM #define HAS_TEST_AND_SET +typedef unsigned char slock_t; #endif #if defined(__sparc__) #define NEED_SPARC_TAS_ASM #define HAS_TEST_AND_SET -#endif - -#if defined(__alpha__) -typedef long int slock_t; - -#define HAS_TEST_AND_SET +typedef unsigned char slock_t; #endif #if defined(__vax__) -typedef unsigned char slock_t; - #define NEED_VAX_TAS_ASM #define HAS_TEST_AND_SET +typedef unsigned char slock_t; #endif #if defined(__ns32k__) #define NEED_NS32K_TAS_ASM #define HAS_TEST_AND_SET +typedef unsigned char slock_t; #endif #if defined(__m68k__) #define HAS_TEST_AND_SET +typedef unsigned char slock_t; +#endif + +#if defined(__arm__) +#define HAS_TEST_AND_SET +typedef unsigned char slock_t; #endif #if defined(__mips__) /* # undef HAS_TEST_AND_SET */ +#endif + +#if defined(__alpha__) +#define HAS_TEST_AND_SET +typedef unsigned long slock_t; +#endif +#if defined(__powerpc__) +#define HAS_TEST_AND_SET +typedef unsigned int slock_t; #endif |