Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
68f7b2b3
Commit
68f7b2b3
authored
Apr 08, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Simplify check for getnameinfo
- Added check for getaddrinfo
parent
9ab66680
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
27 deletions
+4
-27
configure.ac
configure.ac
+4
-18
src/misc/httpd.c
src/misc/httpd.c
+0
-9
No files found.
configure.ac
View file @
68f7b2b3
...
...
@@ -391,24 +391,10 @@ if test $ac_cv_struct_sockaddr_storage = no; then
AC_DEFINE(ss_family, sa_family)
fi
dnl getnameinfo, which implies {get,free}addrinfo, but not gai_strerror,
dnl not available on win32 and -lresolv NOT needed on Solaris.
AH_TEMPLATE(HAVE_GETNAMEINFO,
[Define to 1 if you have the `getnameinfo' function.])
AH_TEMPLATE(HAVE_GAI_STRERROR,
[Define to 1 if you have the `gai_strerror' function.])
AC_CACHE_CHECK([for getnameinfo], ac_cv_func_getnameinfo,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([
[#include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
#endif]
], [[getnameinfo(0,0,0,0,0,0,0);]])],
ac_cv_func_getnameinfo=yes,
ac_cv_func_getnameinfo=no)])
AS_IF([test $ac_cv_func_getnameinfo = yes],
[AC_DEFINE(HAVE_GETNAMEINFO)
AC_DEFINE(HAVE_GAI_STRERROR)])
dnl getaddrinfo, getnameinfo and gai_strerror check
dnl -lresolv is NOT needed on Solaris
dnl we purposedly make the test fail on Windows
AC_CHECK_FUNCS([getaddrinfo getnameinfo gai_strerror])
dnl Check for va_copy
AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy,
...
...
src/misc/httpd.c
View file @
68f7b2b3
...
...
@@ -879,15 +879,6 @@ void httpd_StreamDelete( httpd_stream_t *stream )
*****************************************************************************/
#define LISTEN_BACKLOG 100
#if defined(HAVE_GETNAMEINFO) && !defined(HAVE_GETADDRINFO)
/*
* For now, VLC's configure script does not check for getaddrinfo(),
* but it should be present if getnameinfo() is (the opposite is untrue, with
* Debian potato as an example)
*/
# define HAVE_GETADDRINFO 1
#endif
static
void
httpd_HostThread
(
httpd_host_t
*
);
static
int
GetAddrPort
(
const
struct
sockaddr_storage
*
p_ss
);
...
...
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