udp: Don't set errno to EAFNOSUPPORT unconditionally

Fixes bug #573342.
This commit is contained in:
LRN 2009-02-27 20:24:53 +01:00 committed by Sebastian Dröge
parent 80510aeee7
commit 5d9c947f92

View file

@ -149,7 +149,11 @@ gst_udp_set_loop_ttl (int sockfd, gboolean loop, int ttl)
break;
}
default:
#ifdef G_OS_WIN32
WSASetLastError (WSAEAFNOSUPPORT);
#else
errno = EAFNOSUPPORT;
#endif
}
#endif
return ret;