From 561687696f8a8764cabc64a482a2b72afc9d4a33 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 18 Jun 2012 23:39:30 +0300 Subject: network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids warnings. Signed-off-by: Martin Storsjö --- libavformat/network.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/network.h') 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 -- cgit v1.2.3