]> git.sesse.net Git - ffmpeg/commitdiff
avformat/network: move sockaddr_union after sockaddr_storage compatibility code
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 15 Sep 2014 23:00:49 +0000 (01:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 15 Sep 2014 23:19:53 +0000 (01:19 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/network.h

index d4e1a894cb9bc3a742f0116fc4747eb3c8b1c6c9..0d1081ad1fdb706ae7ef35385dcdfe6494b69ebf 100644 (file)
@@ -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