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

From: Ralph Siemsen <hidden>
Date: 2007-07-13 12:56:07

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help