Skip to contentSkip to conversation

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

Buildroot Ralph Siemsen 1 participant 1 message Jul 13, 2007

lore
Share & tools
lore
#0 lore raw

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 +1 -1
@@ -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