diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-09 06:11:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-09 06:11:11 +0000 |
commit | 48c0f2f304fb0c73f292d7df5eaa463774dc6bf4 (patch) | |
tree | 65473088c6341d0617dd2ed3eebaf0ca1b0db86b /ldso | |
parent | f8853afba4edb751a71c768602590744eb0eb7a7 (diff) |
Arm needs this to compile with gcc 2.95
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/arm/dl-syscalls.h | 12 | ||||
-rw-r--r-- | ldso/ldso/arm/ld_syscalls.h | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ldso/ldso/arm/dl-syscalls.h b/ldso/ldso/arm/dl-syscalls.h index c020832bb..dbf1634e0 100644 --- a/ldso/ldso/arm/dl-syscalls.h +++ b/ldso/ldso/arm/dl-syscalls.h @@ -3,5 +3,17 @@ * before the errno symbol is dynamicly linked. */ #define __set_errno(X) {(void)(X);} + +/* Prepare for the case that `__builtin_expect' is not available. */ +#if __GNUC__ == 2 && __GNUC_MINOR__ < 96 +#define __builtin_expect(x, expected_value) (x) +#endif +#ifndef likely +# define likely(x) __builtin_expect((!!(x)),1) +#endif +#ifndef unlikely +# define unlikely(x) __builtin_expect((!!(x)),0) +#endif + #include "sys/syscall.h" diff --git a/ldso/ldso/arm/ld_syscalls.h b/ldso/ldso/arm/ld_syscalls.h index c020832bb..dbf1634e0 100644 --- a/ldso/ldso/arm/ld_syscalls.h +++ b/ldso/ldso/arm/ld_syscalls.h @@ -3,5 +3,17 @@ * before the errno symbol is dynamicly linked. */ #define __set_errno(X) {(void)(X);} + +/* Prepare for the case that `__builtin_expect' is not available. */ +#if __GNUC__ == 2 && __GNUC_MINOR__ < 96 +#define __builtin_expect(x, expected_value) (x) +#endif +#ifndef likely +# define likely(x) __builtin_expect((!!(x)),1) +#endif +#ifndef unlikely +# define unlikely(x) __builtin_expect((!!(x)),0) +#endif + #include "sys/syscall.h" |