[glib] gsocket: fix compilation when ENOTSOCK and WSANOTSOCK are both defined
- From: Sebastian DrÃge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsocket: fix compilation when ENOTSOCK and WSANOTSOCK are both defined
- Date: Wed, 29 Feb 2012 10:29:31 +0000 (UTC)
commit c5b6f774c4c133b5c1a9ebbd046a54ef6f177f84
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Feb 29 11:19:21 2012 +0100
gsocket: fix compilation when ENOTSOCK and WSANOTSOCK are both defined
gio/gsocket.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index d46d497..a28546f 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -335,10 +335,11 @@ g_socket_details_from_fd (GSocket *socket)
{
#ifdef ENOTSOCK
case ENOTSOCK:
-#endif
+#else
#ifdef WSAENOTSOCK
case WSAENOTSOCK:
#endif
+#endif
case EBADF:
/* programmer error */
g_error ("creating GSocket from fd %d: %s\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]