diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-03-17 20:13:52 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-03-17 20:13:52 +0300 |
commit | 298fad4623c7c9f869fcf8e9aceac983bbb1ee1a (patch) | |
tree | 2c0363d8f1f315a81132e53aa341808ec756e90d /winsup/cygwin/net.cc | |
parent | f52488f76bf850648bbeb43954a522634701d0da (diff) |
* net.cc (cygwin_socket): Set protocol to 0 when address family is
AF_UNIX to avoid WSAEPROTONOSUPPORT error.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index ee95f7ac5..f0cf9a758 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -352,7 +352,7 @@ cygwin_socket (int af, int type, int protocol) { debug_printf ("socket (%d, %d, %d)", af, type, protocol); - soc = socket (AF_INET, type, protocol); + soc = socket (AF_INET, type, af == AF_UNIX ? 0 : protocol); if (soc == INVALID_SOCKET) { |