Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-12-11 15:18:43 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-06 14:56:53 +0300
commite4e6a3fbcc4fd4c4aaebcfd4478222ff84f63d71 (patch)
treebd5bfbe629d0af6f349c0ed2106b1e1c8b55ddaa /libavformat
parent295597b7491eb942e4f3c332682f8473d4b6afc7 (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index 7f467304a8..71347e815b 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)