OSDN Git Service

network: Don't redefine error codes if they already exist in errno.h
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 23 Jun 2012 12:00:17 +0000 (15:00 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 26 Jun 2012 14:22:21 +0000 (17:22 +0300)
commit4b1b1449d95b3567d055fc410a1db137c811229c
tree60013e54de195e77cde267435ddf02716d351ced
parente64bceeac0cdf312d9481b3dd1ec1fda7ee2b94c
network: Don't redefine error codes if they already exist in errno.h

Since the errno.h values don't match the error codes that winsock
returns, map the winsock error codes to the errno ones, to make
sure explicit checks against AVERROR(x) match.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/network.c
libavformat/network.h