[Nice] Fixing libnice compile with GLib 2.31

Rohan Garg rohan16garg at gmail.com
Mon Jan 16 14:13:02 PST 2012


Final patch, also fixes build issues with tests.

Best
Rohan Garg

On Fri, Jan 13, 2012 at 11:09 PM, Rohan Garg <rohan16garg at gmail.com> wrote:
> 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: fix_build.patch
Type: text/x-patch
Size: 6178 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nice/attachments/20120117/5555e2ca/attachment.bin>


More information about the Nice mailing list