mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
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.
This commit is contained in:
parent
dff3f37bdf
commit
0d9dccee4f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue