In message <[EMAIL PROTECTED]> you wrote:

> Added: trunk/autobuilder/games/tuxmath/lessons.p
> ===================================================================
> --- trunk/autobuilder/games/tuxmath/lessons.p                         (rev 0)
> +++ trunk/autobuilder/games/tuxmath/lessons.p 2007-12-19 09:53:52 UTC (rev 
> 2975)
> @@ -0,0 +1,28 @@
> +--- src/lessons.c.orig       2007-12-13 12:16:56.593498900 +0000
> ++++ src/lessons.c    2007-12-13 12:20:44.815498900 +0000
> +@@ -120,12 +120,23 @@
> +   return;
> + }
> + 
> ++/* RISC OS doesn't have a working version of basename, so
> ++ * add a simple version that will hopefully be enough.
> ++ */
> ++char *riscos_basename(const unsigned char *s)
> ++{
> ++   /* Assumming we are being passed a unix format filename */
> ++   char *leaf = strrchr(s, '/');
> ++   if (leaf == NULL) leaf = s;
> ++   return s;
> ++}
> ++
> + /* Perform a strcasecmp() on two path strings, stripping away all the */
> + /* dirs in the path and just comparing the filenames themselves:      */
> + static int filename_comp(const unsigned char* s1, const unsigned char* s2)
> + {
> +-  char* f1 = basename(s1);
> +-  char* f2 = basename(s2);
> ++  char* f1 = riscos_basename(s1);
> ++  char* f2 = riscos_basename(s2);
> +   return strcasecmp(f1, f2);
> + }
> + 

I just added glibc 2.7 basename() implementation in UnixLib 5 so this
patch is no longer needed for GCCSDK 4 based builds.

John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
[EMAIL PROTECTED]                             ARM powered, RISC OS driven

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to