Skip to content
Snippets Groups Projects
Commit 8c1dc1f6 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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

parent 91459bd3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment