summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-05-01 08:58:54 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 08:58:54 -0700
commite9c527163d31da9f616e989a90429729525c5233 (patch)
treedd449d0954ea9a96d87541ba8a611089bd7447d7 /include
parentc16993d9009b4311f0e6088af38844eabc8b5e5b (diff)
downloadop-kernel-dev-e9c527163d31da9f616e989a90429729525c5233.zip
op-kernel-dev-e9c527163d31da9f616e989a90429729525c5233.tar.gz
[PATCH] uml: move va_copy conditional def
GCC 2.95 uses __va_copy instead of va_copy. Handle it inside compiler.h instead of in a casual file, and avoid the risk that this breaks with a newer compiler (which it could do). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compiler-gcc2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler-gcc2.h b/include/linux/compiler-gcc2.h
index 5a35915..ebed1766 100644
--- a/include/linux/compiler-gcc2.h
+++ b/include/linux/compiler-gcc2.h
@@ -22,3 +22,8 @@
# define __attribute_pure__ __attribute__((pure))
# define __attribute_const__ __attribute__((__const__))
#endif
+
+/* GCC 2.95.x/2.96 recognize __va_copy, but not va_copy. Actually later GCC's
+ * define both va_copy and __va_copy, but the latter may go away, so limit this
+ * to this header */
+#define va_copy __va_copy
OpenPOWER on IntegriCloud