ffmpeg | branch: master | Martin Storsjö <[email protected]> | Wed Dec 11 
14:18:43 2019 +0200| [6569e9505c781468092c15fa84d034c9e37d26ca] | committer: 
Martin Storsjö

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ö <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6569e9505c781468092c15fa84d034c9e37d26ca
---

 libavformat/network.h | 3 +++
 1 file changed, 3 insertions(+)

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)

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to