Skip to content

Instantly share code, notes, and snippets.

@2bits
Created November 20, 2012 01:22
Show Gist options
  • Save 2bits/4115342 to your computer and use it in GitHub Desktop.
Save 2bits/4115342 to your computer and use it in GitHub Desktop.
glib-2.34.2 patch fixes build errors on OSX in gio/gsocket.c
--- a/gio/gsocket.c 2012-11-09 19:27:29.000000000 -0800
+++ b/gio/gsocket.c 2012-11-19 17:20:18.000000000 -0800
@@ -2383,6 +2383,9 @@
{
#ifndef G_OS_WIN32
gulong avail = 0;
+#ifdef __APPLE__
+ gsize avail_len = sizeof (avail);
+#endif
#else
gint avail = 0;
gsize avail_len = sizeof (avail);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment