[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] mintlib patch



Hello guys,

I successfully built a working gcc cross compiler with gcc 3.3.6.  I
also successfully cross built mintlib with it and it works :)  Anyway, a
small diff is attached that I think is a bug in mintlib.  *s is defined
as a constant which I think is wrong and gcc is complaining about.

PS: Anyone know the proper method for cross building g++?  It seems it
never installed or built any of libstdc++-v3 which of course is failing.

Thanks,
Mark

--- mintlib/mintlib/enoent.c.orig	2005-08-03 21:50:42.000000000 -0400
+++ mintlib/mintlib/enoent.c	2005-08-03 21:48:31.000000000 -0400
@@ -17,7 +17,7 @@
 int
 _enoent (const char *path)
 {
-	register const char *s;
+	register char *s;
 	long oldmask;
 	int dir_seen = 0;