Commit 8c1dc1f6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/network: add union for avoiding strict aliassing violations with sockaddr*

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 91459bd3
......@@ -72,6 +72,14 @@ int ff_neterrno(void);
#include <poll.h>
#endif
typedef union sockaddr_union {
struct sockaddr_storage storage;
struct sockaddr_in in;
#if HAVE_STRUCT_SOCKADDR_IN6
struct sockaddr_in6 in6;
#endif
} sockaddr_union;
int ff_socket_nonblock(int socket, int enable);
extern int ff_network_inited_globally;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment