[Buildroot] uClibc-0.9.29-001-fix-mmap.patch broken: __ulong_t undefined

Ralph Siemsen ralphs at netwinder.org
Fri Jul 13 12:56:07 UTC 2007


Greetings,

SVN 19018 appears to have (re-)introduced a bug into the file
toolchain/uClibc/uClibc-0.9.29-001-fix-mmap.patch

Specifically the issue is use of a cast (__ulong_t) that should
instead be (__u_long).  This was previously reported here:
http://www.busybox.net/lists/uclibc-cvs/2007-May/011362.html

The following patch "works for me":

--- uClibc-0.9.29-001-fix-mmap.patch	2007/07/11 14:49:36	1.1
+++ uClibc-0.9.29-001-fix-mmap.patch	2007/07/11 21:44:18	1.2
@@ -84,7 +84,7 @@
 +                         fd,((__u_quad_t)offset >> MMAP2_PAGE_SHIFT));
 +#else
 +   return __syscall_mmap2(addr, len, prot, flags,
-+                          fd,((__ulong_t)offset >> MMAP2_PAGE_SHIFT));
++                          fd,((__u_long)offset >> MMAP2_PAGE_SHIFT));
 +#endif
  }

Regards,
-R



More information about the buildroot mailing list