summaryrefslogtreecommitdiff
path: root/libavformat/network.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-06-18 23:39:30 +0300
committerMartin Storsjö <martin@martin.st>2012-06-19 20:22:47 +0300
commit561687696f8a8764cabc64a482a2b72afc9d4a33 (patch)
tree8cf254cdfa2bac76ce89ef7f6105e43eebf24369 /libavformat/network.h
parent9d811fd80fbd94a0e44d87cf8ccdab96c2a4af04 (diff)
network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows
This avoids warnings. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/network.h')
-rw-r--r--libavformat/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index 72d01d2986..1dc9deb675 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -35,6 +35,8 @@
#define ETIMEDOUT WSAETIMEDOUT
#define ECONNREFUSED WSAECONNREFUSED
#define EINPROGRESS WSAEINPROGRESS
+#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)
int ff_neterrno(void);
#else