mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avformat/network: move sockaddr_union after sockaddr_storage compatibility code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
864d124bb7
commit
b76d6132e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user