]> granicus.if.org Git - postgresql/blob - src/include/port/netbsd.h
386584e9a31ea16630df5a0dc93ee0bfb2b67aff
[postgresql] / src / include / port / netbsd.h
1 #if defined(__i386__) || defined(__x86_64__)
2 #define NEED_I386_TAS_ASM
3 #define HAS_TEST_AND_SET
4 typedef unsigned char slock_t;
5 #endif
6
7 #if defined(__ia64)
8 #define HAS_TEST_AND_SET
9 typedef unsigned int slock_t;
10 #endif
11
12 #if defined(__sparc__)
13 #define NEED_SPARC_TAS_ASM
14 #define HAS_TEST_AND_SET
15 typedef unsigned char slock_t;
16 #endif
17
18 #if defined(__vax__)
19 #define NEED_VAX_TAS_ASM
20 #define HAS_TEST_AND_SET
21 typedef unsigned char slock_t;
22 #endif
23
24 #if defined(__ns32k__)
25 #define NEED_NS32K_TAS_ASM
26 #define HAS_TEST_AND_SET
27 typedef unsigned char slock_t;
28 #endif
29
30 #if defined(__m68k__)
31 #define HAS_TEST_AND_SET
32 typedef unsigned char slock_t;
33 #endif
34
35 #if defined(__arm__)
36 #define HAS_TEST_AND_SET
37 typedef unsigned char slock_t;
38 #endif
39
40 #if defined(__mips__)
41 /* #    undef HAS_TEST_AND_SET */
42 #endif
43
44 #if defined(__alpha__)
45 #define HAS_TEST_AND_SET
46 typedef unsigned long slock_t;
47 #endif
48
49 #if defined(__powerpc__)
50 #define HAS_TEST_AND_SET
51 typedef unsigned int slock_t;
52
53 #endif