Commit 8af4fbac authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

vlc_network.h: Define AI_NUMERICSERV if not defined.

parent de832a15
......@@ -274,6 +274,11 @@ struct addrinfo
# define AI_NUMERICHOST 4
# endif /* if !HAVE_STRUCT_ADDRINFO */
/* Mac OS X doesn't define that one */
#ifndef AI_NUMERICSERV
#define AI_NUMERICSERV 0
#endif
VLC_EXPORT( const char *, vlc_gai_strerror, ( int ) );
VLC_EXPORT( int, vlc_getnameinfo, ( const struct sockaddr *, int, char *, int, int *, int ) );
VLC_EXPORT( int, vlc_getaddrinfo, ( vlc_object_t *, const char *, int, const struct addrinfo *, struct addrinfo ** ) );
......
......@@ -394,10 +394,7 @@ static int Open( vlc_object_t *p_this )
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_DGRAM,
.ai_protocol = 0,
.ai_flags = AI_NUMERICHOST
#ifdef AI_NUMERICSERV
| AI_NUMERICSERV
#endif
.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV
};
char *shost = var_GetNonEmptyString (p_access, "src-addr");
char *dhost = var_GetNonEmptyString (p_access, "dst-addr");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment