Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
c0bf5aee
Commit
c0bf5aee
authored
Dec 05, 2017
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Assume if_nametoindex to be present
parent
949fdc70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
configure.ac
configure.ac
+2
-2
include/vlc_fixups.h
include/vlc_fixups.h
+0
-3
src/network/udp.c
src/network/udp.c
+1
-0
No files found.
configure.ac
View file @
c0bf5aee
...
...
@@ -656,7 +656,7 @@ AC_SEARCH_LIBS(connect, [socket], [
])
], [
AS_IF([test "${SYS}" = "mingw32"], [
SOCKET_LIBS="-lws2_32"
SOCKET_LIBS="-lws2_32
-liphlpapi
"
])
])
...
...
@@ -680,7 +680,7 @@ AC_LINK_IFELSE([
char dst[[sizeof(struct in_addr)]];
inet_pton(AF_INET, "127.0.0.1", dst);
])],[AC_DEFINE([HAVE_INET_PTON],[1],[Define to 1 if you have inet_pton function])],[AC_LIBOBJ([inet_pton])])
AC_CHECK_FUNCS([if_nameindex
if_nametoindex
])
AC_CHECK_FUNCS([if_nameindex])
VLC_RESTORE_FLAGS
AC_SUBST(SOCKET_LIBS)
...
...
include/vlc_fixups.h
View file @
c0bf5aee
...
...
@@ -411,9 +411,6 @@ struct if_nameindex
unsigned
if_index
;
char
*
if_name
;
};
# ifndef HAVE_IF_NAMETOINDEX
# define if_nametoindex(name) atoi(name)
# endif
# define if_nameindex() (errno = ENOBUFS, NULL)
# define if_freenameindex(list) (void)0
#endif
...
...
src/network/udp.c
View file @
c0bf5aee
...
...
@@ -41,6 +41,7 @@
#ifdef _WIN32
# undef EAFNOSUPPORT
# define EAFNOSUPPORT WSAEAFNOSUPPORT
# include <iphlpapi.h>
#else
# include <unistd.h>
# ifdef HAVE_NET_IF_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment