Browse Source

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>
tags/n4.3
Martin Storsjö 6 years ago
parent
commit
6569e9505c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/network.h

+ 3
- 0
libavformat/network.h View File

@@ -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)


Loading…
Cancel
Save