diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-23 14:10:10 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-23 14:10:10 +0100 |
commit | 0d9dccee4f4a920e237525f11fa57e849b04bb73 (patch) | |
tree | 7a11f3ebee99f386dcfcf4bcf6bd523bcfd89869 | |
parent | dff3f37bdfdb0941707d2184a175fa99eeb2b047 (diff) |
udp: fix compiler warning about EAI_ADDRFAMILY getting redefined in some cases
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.
-rw-r--r-- | gst/udp/gstudpnetutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c index 41cc2a12..c426020e 100644 --- a/gst/udp/gstudpnetutils.c +++ b/gst/udp/gstudpnetutils.c @@ -26,13 +26,13 @@ #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 |