GNOME Bugzilla – Bug 123137
[PATCH] Compilation fails when size_t is not an unsigned int
Last modified: 2004-12-22 21:47:04 UTC
Darwin defines size_t as an unsigned long, while it's an unsigned int on Linux. With -werror, this causes a failure in gstfilesrc.c in function gst_filesrc_map_region on Darwin. I've created a patch to typecast it to unsigned long on all platforms, since that's what's happening if the mmap works.
Created attachment 20256 [details] [review] typecast size_t to unsigned long
Applied to HEAD. Should go into 0.6.4.
Created attachment 20263 [details] [review] patch for 0.6
Applied to 0.6