gsocket: fix compilation when ENOTSOCK and WSANOTSOCK are both defined

This commit is contained in:
Andoni Morales Alastruey 2012-02-29 11:19:21 +01:00 committed by Sebastian Dröge
parent 9db8692f5a
commit c5b6f774c4

View File

@ -335,9 +335,10 @@ g_socket_details_from_fd (GSocket *socket)
{
#ifdef ENOTSOCK
case ENOTSOCK:
#endif
#else
#ifdef WSAENOTSOCK
case WSAENOTSOCK:
#endif
#endif
case EBADF:
/* programmer error */