[glib] gio: provide G_IO_ERROR_NOT_CONNECTED translation for ENOTCONN



commit e0f1a19332fd2aa25dc08eda289a217044e07472
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Dec 2 14:25:56 2014 +0100

    gio: provide G_IO_ERROR_NOT_CONNECTED translation for ENOTCONN
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741016

 gio/gioerror.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gio/gioerror.c b/gio/gioerror.c
index 4ec53e8..0faff25 100644
--- a/gio/gioerror.c
+++ b/gio/gioerror.c
@@ -248,6 +248,12 @@ g_io_error_from_errno (gint err_no)
       break;
 #endif
 
+#ifdef ENOTCONN
+    case ENOTCONN:
+      return G_IO_ERROR_NOT_CONNECTED;
+      break;
+#endif
+
     default:
       return G_IO_ERROR_FAILED;
       break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]