summaryrefslogtreecommitdiff
path: root/ldso/include/ldso.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-29 11:42:46 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-29 11:42:46 +0000
commit8391a5231556a37c6f7eef871c3e310e91623b00 (patch)
treec9db585d48ae03c1f37146720780f0f3e5c1cd31 /ldso/include/ldso.h
parent8e5b520d884b4793f69415b303d6f4447a7521c2 (diff)
Scrub up use of ELF_USES_RELOCA and eliminte some unsightly ifdefs
Diffstat (limited to 'ldso/include/ldso.h')
-rw-r--r--ldso/include/ldso.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index 81ae78d2b..621236fdf 100644
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -15,3 +15,18 @@
# define PAGE_SHIFT 12
# define PAGE_SIZE (1UL << PAGE_SHIFT)
#endif
+
+/* 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
+#ifndef __LINUX_COMPILER_H
+#define __LINUX_COMPILER_H
+#endif
+