Commit b76d6132 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/network: move sockaddr_union after sockaddr_storage compatibility code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 864d124b
......@@ -72,14 +72,6 @@ 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;
......@@ -119,6 +111,14 @@ struct sockaddr_storage {
};
#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
typedef union sockaddr_union {
struct sockaddr_storage storage;
struct sockaddr_in in;
#if HAVE_STRUCT_SOCKADDR_IN6
struct sockaddr_in6 in6;
#endif
} sockaddr_union;
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
......
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