[Nice] Fixing libnice compile with GLib 2.31

Rohan Garg rohan16garg at gmail.com
Fri Jan 13 09:39:47 PST 2012


Here's another patch with proper version checking. Could someone test it on a 
earlier version of glib ( < 2.31 ) to make sure everything compiles ?

Best
Rohan Garg
On Friday 13 Jan 2012 10:42:09 PM Rohan Garg wrote:
> Gah, So should I just wrap it around ifdef's for now?
> 
> Best
> Rohan Garg
> 
> 
> On Fri, Jan 13, 2012 at 10:35 PM, Olivier Crête
> 
> <olivier.crete at collabora.com> wrote:
> > Hi,
> > 
> > Problem is that GRecMutex is only available in 2.31.... The GLib people
> > are idiots..
> > 
> > On Fri, 2012-01-13 at 22:09 +0530, Rohan Garg wrote:
> >> Hi
> >> Since GLib 2.31 and above, GStaticRecMutex has been deperecated thus
> >> causing builds to fail on Ubuntu Precise which now ships with the latest
> >> GLib.
> >> 
> >> The attached patch fixes the issue.
> >> 
> >> Note: No initialization of GRecMutex is required as per docs because it
> >> is
> >> static.
> >> 
> >> Best
> >> Rohan Garg
> >> _______________________________________________ Nice mailing list
> >> Nice at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/nice> 
> > --
> > Olivier Crête
> > olivier.crete at collabora.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_against_glib_2_dot_31.diff
Type: text/x-patch
Size: 1211 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nice/attachments/20120113/393dab15/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/nice/attachments/20120113/393dab15/attachment.pgp>


More information about the Nice mailing list