After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 123137 - [PATCH] Compilation fails when size_t is not an unsigned int
[PATCH] Compilation fails when size_t is not an unsigned int
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.6.x
Other Mac OS
: Normal normal
: 0.6.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-09-24 19:11 UTC by Jerry Talkington
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
typecast size_t to unsigned long (1.06 KB, patch)
2003-09-24 19:11 UTC, Jerry Talkington
none Details | Review
patch for 0.6 (1.05 KB, patch)
2003-09-25 00:40 UTC, David Schleef
none Details | Review

Description Jerry Talkington 2003-09-24 19:11:14 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.
Comment 1 Jerry Talkington 2003-09-24 19:11:42 UTC
Created attachment 20256 [details] [review]
typecast size_t to unsigned long
Comment 2 David Schleef 2003-09-24 19:39:15 UTC
Applied to HEAD.  Should go into 0.6.4.
Comment 3 David Schleef 2003-09-25 00:40:45 UTC
Created attachment 20263 [details] [review]
patch for 0.6
Comment 4 David Schleef 2003-09-25 00:41:43 UTC
Applied to 0.6