Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita26ac42

Browse files
committed
Awhile back I wrote that freebsd.h was probably broken in the places where
it diverged from netbsd.h and openbsd.h. This has now been confirmed.Accordingly, make all three exactly alike.
1 parentd2a522e commita26ac42

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

‎src/include/port/freebsd.h

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,47 @@
11
#if defined(__i386__)
2-
typedefunsignedcharslock_t;
3-
2+
#defineNEED_I386_TAS_ASM
43
#defineHAS_TEST_AND_SET
4+
typedefunsignedcharslock_t;
55
#endif
66

77
#if defined(__sparc__)
88
#defineNEED_SPARC_TAS_ASM
99
#defineHAS_TEST_AND_SET
10-
#endif
11-
12-
#if defined(__alpha__)
13-
typedeflongintslock_t;
14-
15-
#defineHAS_TEST_AND_SET
10+
typedefunsignedcharslock_t;
1611
#endif
1712

1813
#if defined(__vax__)
19-
typedefunsignedcharslock_t;
20-
2114
#defineNEED_VAX_TAS_ASM
2215
#defineHAS_TEST_AND_SET
16+
typedefunsignedcharslock_t;
2317
#endif
2418

2519
#if defined(__ns32k__)
2620
#defineNEED_NS32K_TAS_ASM
2721
#defineHAS_TEST_AND_SET
22+
typedefunsignedcharslock_t;
2823
#endif
2924

3025
#if defined(__m68k__)
3126
#defineHAS_TEST_AND_SET
27+
typedefunsignedcharslock_t;
28+
#endif
29+
30+
#if defined(__arm__)
31+
#defineHAS_TEST_AND_SET
32+
typedefunsignedcharslock_t;
3233
#endif
3334

3435
#if defined(__mips__)
3536
/* #undef HAS_TEST_AND_SET */
37+
#endif
38+
39+
#if defined(__alpha__)
40+
#defineHAS_TEST_AND_SET
41+
typedefunsigned longslock_t;
42+
#endif
3643

44+
#if defined(__powerpc__)
45+
#defineHAS_TEST_AND_SET
46+
typedefunsignedintslock_t;
3747
#endif

‎src/include/port/netbsd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ typedef unsigned long slock_t;
4444
#if defined(__powerpc__)
4545
#defineHAS_TEST_AND_SET
4646
typedefunsignedintslock_t;
47-
4847
#endif

‎src/include/port/openbsd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ typedef unsigned long slock_t;
4444
#if defined(__powerpc__)
4545
#defineHAS_TEST_AND_SET
4646
typedefunsignedintslock_t;
47-
4847
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp