aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-12-11 14:18:43 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-12 11:22:04 +0200
commitfc76c6037acaaef2017fb541213fe151a8d0b999 (patch)
treecdb52506a4579f9bfcc99d474a9ffb6ae8805530
parent36f962f3c209f2f402b1ef9091ebbb7a8d11c020 (diff)
downloadffmpeg-fc76c6037acaaef2017fb541213fe151a8d0b999.tar.gz
network: Define ENOTCONN as WSAENOTCONN if not defined
This fixes compilation with old mingw.org toolchains, which has got much fewer errno.h entries. Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit 6569e9505c781468092c15fa84d034c9e37d26ca) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index f83c796a95..1b3e0f184c 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -50,6 +50,9 @@
#ifndef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
#endif
+#ifndef ENOTCONN
+#define ENOTCONN WSAENOTCONN
+#endif
#define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e)
#define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e)