                 LIBS="$save_libs"])
    AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket,
  				        [NETWORK_LIBS="-lsocket $NETWORK_LIBS"],
-diff -ruwN source/gio/ginetsocketaddress.c source-new/gio/ginetsocketaddress.c
---- source/gio/ginetsocketaddress.c	2018-12-23 06:10:41.000000000 -0700
-+++ source-new/gio/ginetsocketaddress.c	2019-01-05 12:05:33.754323562 -0700
-@@ -407,14 +407,21 @@
- g_inet_socket_address_new_from_string (const char *address,
-                                        guint       port)
- {
-+#if !defined(__redox__)
-   static struct addrinfo *hints, hints_struct;
-+#endif
-   GSocketAddress *saddr;
-   GInetAddress *iaddr;
-+#if !defined(__redox__)
-   struct addrinfo *res;
-+#endif
-   gint status;
- 
-   if (strchr (address, ':'))
-     {
-+#if defined(__redox__)
-+      saddr = NULL;
-+#else
-       /* IPv6 address (or it's invalid). We use getaddrinfo() because
-        * it will handle parsing a scope_id as well.
-        */
-@@ -442,6 +449,7 @@
-         saddr = NULL;
- 
-       freeaddrinfo (res);
-+#endif
-     }
-   else
-     {
 diff -ruwN source/gio/glocalfileinfo.c source-new/gio/glocalfileinfo.c
 --- source/gio/glocalfileinfo.c	2018-12-23 06:10:41.000000000 -0700
 +++ source-new/gio/glocalfileinfo.c	2019-01-05 14:18:02.435425946 -0700

-
diff -ruwN source/gio/gthreadedresolver.c source-new/gio/gthreadedresolver.c
--- source/gio/gthreadedresolver.c	2018-12-23 06:10:41.000000000 -0700
+++ source-new/gio/gthreadedresolver.c	2019-01-05 13:46:36.830327532 -0700
@@ -49,6 +49,7 @@
 {
   switch (err)
     {
+#if !defined(__redox__)
     case EAI_FAIL:
 #if defined(EAI_NODATA) && (EAI_NODATA != EAI_NONAME)
     case EAI_NODATA:
@@ -58,7 +59,7 @@
 
     case EAI_AGAIN:
       return G_RESOLVER_ERROR_TEMPORARY_FAILURE;
-
+#endif
     default:
       return G_RESOLVER_ERROR_INTERNAL;
     }
@@ -92,6 +93,12 @@
                    gpointer       task_data,
                    GCancellable  *cancellable)
 {
+#if defined(__redox__)
+    g_task_return_new_error (task,
+                             G_RESOLVER_ERROR,
+                             G_RESOLVER_ERROR_INTERNAL,
+                             _("do_lookup_by_name not implemented on Redox"));
+#else
   LookupData *lookup_data = task_data;
   const char *hostname = lookup_data->hostname;
   struct addrinfo *res = NULL;
@@ -163,6 +170,7 @@
 
   if (res)
     freeaddrinfo (res);
+#endif
 }
 
 static GList *
@@ -289,6 +297,12 @@
                       gpointer       task_data,
                       GCancellable  *cancellable)
 {

 static GList *
 _g_get_unix_mount_points (void)
 {
diff -ruwN source/glib/gthread-posix.c source-new/glib/gthread-posix.c
--- source/glib/gthread-posix.c	2018-12-23 06:10:41.000000000 -0700
+++ source-new/glib/gthread-posix.c	2019-01-05 11:40:57.454759289 -0700
