udp: fix compiler warning about EAI_ADDRFAMILY getting redefined in some cases
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 23 Jun 2009 13:10:10 +0000 (14:10 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 23 Jun 2009 13:10:10 +0000 (14:10 +0100)
Include the header from where we include all the system headers with the
socket stuff before we try to define EAI_ADDRFAMILY ourselves, otherwise
we define it ourselves and then get a compiler warning if a system header
defines it as well without guarding against it being defined already.

gst/udp/gstudpnetutils.c

index 41cc2a1..c426020 100644 (file)
 #include <stdio.h>
 #include <memory.h>
 
+#include "gstudpnetutils.h"
+
 /* EAI_ADDRFAMILY was obsoleted in BSD at some point */
 #ifndef EAI_ADDRFAMILY
 #define EAI_ADDRFAMILY 1
 #endif
 
-#include "gstudpnetutils.h"
-
 #ifdef G_OS_WIN32
 
 gboolean