[PATCH 2.6.12-rc5] UML + UDF duplicated symbol

From: Dominik Hackl
Date: Tue May 31 2005 - 11:51:07 EST




Linux with UDF compiled in, can't be linked against the libc (needed for
UML).

This patch makes the variable __mon_yday static and avoids a namespace
conflict with the libc.


Signed-off-by: Dominik Hackl <dominik@xxxxxxxxxxxxx>



--- linux-2.6.12-rc5.orig/fs/udf/udftime.c 2005-05-25 20:37:16.000000000 +0200
+++ linux-2.6.12-rc5/fs/udf/udftime.c 2005-05-31 16:51:11.000000000 +0200
@@ -46,7 +46,7 @@
#endif

/* How many days come before each month (0-12). */
-const unsigned short int __mon_yday[2][13] =
+const static unsigned short int __mon_yday[2][13] =
{
/* Normal years. */
{ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/