Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b70087de
Commit
b70087de
authored
Dec 30, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./configure.ac.in: fixed the strncasecmp detection.
* ./src/extras/libc.c: fixed a bug in our built-in strncasecmp.
parent
feb09800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
configure.ac.in
configure.ac.in
+11
-11
src/extras/libc.c
src/extras/libc.c
+5
-1
No files found.
configure.ac.in
View file @
b70087de
...
@@ -174,7 +174,7 @@ if test "${nls_cv_force_use_gnu_gettext}" = "yes"; then
...
@@ -174,7 +174,7 @@ if test "${nls_cv_force_use_gnu_gettext}" = "yes"; then
AC_DEFINE(HAVE_INCLUDED_GETTEXT, 1, Define if we use the local libintl)
AC_DEFINE(HAVE_INCLUDED_GETTEXT, 1, Define if we use the local libintl)
INCLUDES="${INCLUDES} -I\\\$(top_srcdir)/intl"
INCLUDES="${INCLUDES} -I\\\$(top_srcdir)/intl"
else
else
AC_CHECK_FUNC(textdomain,,[
AC_CHECK_FUNC
S
(textdomain,,[
AC_CHECK_LIB(intl,textdomain,
AC_CHECK_LIB(intl,textdomain,
LDFLAGS_vlc="${LDFLAGS_vlc} -lintl"
LDFLAGS_vlc="${LDFLAGS_vlc} -lintl"
LDFLAGS_plugins="${LDFLAGS_plugins} -lintl"
LDFLAGS_plugins="${LDFLAGS_plugins} -lintl"
...
@@ -264,16 +264,16 @@ AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab
...
@@ -264,16 +264,16 @@ AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab
dnl Check for usual libc functions
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof lseek)
AC_CHECK_FUNCS(strdup strndup atof lseek)
AC_CHECK_FUNC
(strcasecmp,,[AC_CHECK_FUNC
(stricmp)])
AC_CHECK_FUNC
S(strcasecmp,,[AC_CHECK_FUNCS
(stricmp)])
AC_CHECK_FUNC
(strncasecmp,,[AC_CHECK_FUNC
(strnicmp)])
AC_CHECK_FUNC
S(strncasecmp,,[AC_CHECK_FUNCS
(strnicmp)])
AC_CHECK_FUNC(connect,,[
AC_CHECK_FUNC
S
(connect,,[
AC_CHECK_LIB(socket,connect,
AC_CHECK_LIB(socket,connect,
LDFLAGS_ipv4="${LDFLAGS_ipv4} -lsocket"
LDFLAGS_ipv4="${LDFLAGS_ipv4} -lsocket"
LDFLAGS_vlc="${LDFLAGS_vlc} -lsocket"
LDFLAGS_vlc="${LDFLAGS_vlc} -lsocket"
)])
)])
AC_CHECK_FUNC(send,,[
AC_CHECK_FUNC
S
(send,,[
AC_CHECK_LIB(socket,send,
AC_CHECK_LIB(socket,send,
LDFLAGS_access_http="${LDFLAGS_access_http} -lsocket"
LDFLAGS_access_http="${LDFLAGS_access_http} -lsocket"
LDFLAGS_access_mms="${LDFLAGS_access_mms} -lsocket"
LDFLAGS_access_mms="${LDFLAGS_access_mms} -lsocket"
...
@@ -283,13 +283,13 @@ AC_CHECK_FUNC(send,,[
...
@@ -283,13 +283,13 @@ AC_CHECK_FUNC(send,,[
LDFLAGS_access_output_udp="${LDFLAGS_access_output_udp} -lsocket"
LDFLAGS_access_output_udp="${LDFLAGS_access_output_udp} -lsocket"
)])
)])
AC_CHECK_FUNC(gethostbyname,,[
AC_CHECK_FUNC
S
(gethostbyname,,[
AC_CHECK_LIB(nsl,gethostbyname,LDFLAGS_ipv4="${LDFLAGS_ipv4} -lnsl",[
AC_CHECK_LIB(nsl,gethostbyname,LDFLAGS_ipv4="${LDFLAGS_ipv4} -lnsl",[
AC_CHECK_LIB(bind,gethostbyname,LDFLAGS_ipv4="${LDFLAGS_ipv4} -lbind")])
AC_CHECK_LIB(bind,gethostbyname,LDFLAGS_ipv4="${LDFLAGS_ipv4} -lbind")])
])
])
have_nanosleep=false
have_nanosleep=false
AC_CHECK_FUNC(nanosleep,have_nanosleep=:,[
AC_CHECK_FUNC
S
(nanosleep,have_nanosleep=:,[
AC_CHECK_LIB(rt,nanosleep,
AC_CHECK_LIB(rt,nanosleep,
[LDFLAGS_vlc="${LDFLAGS_vlc} -lrt"; have_nanosleep=:],
[LDFLAGS_vlc="${LDFLAGS_vlc} -lrt"; have_nanosleep=:],
[AC_CHECK_LIB(posix4,nanosleep,
[AC_CHECK_LIB(posix4,nanosleep,
...
@@ -317,13 +317,13 @@ fi
...
@@ -317,13 +317,13 @@ fi
dnl HP/UX port
dnl HP/UX port
AC_CHECK_LIB(rt,sem_init, [LDFLAGS_vlc="${LDFLAGS_vlc} -lrt"])
AC_CHECK_LIB(rt,sem_init, [LDFLAGS_vlc="${LDFLAGS_vlc} -lrt"])
AC_CHECK_FUNC(inet_aton,,[
AC_CHECK_FUNC
S
(inet_aton,,[
AC_CHECK_LIB(resolv,inet_aton,LDFLAGS_ipv4="${LDFLAGS_ipv4} -lresolv")
AC_CHECK_LIB(resolv,inet_aton,LDFLAGS_ipv4="${LDFLAGS_ipv4} -lresolv")
])
])
dnl Check for getopt
dnl Check for getopt
need_getopt=false
need_getopt=false
AC_CHECK_FUNC(getopt_long,[AC_DEFINE(HAVE_GETOPT_LONG,1,long getopt support)],
AC_CHECK_FUNC
S
(getopt_long,[AC_DEFINE(HAVE_GETOPT_LONG,1,long getopt support)],
[ # FreeBSD has a gnugetopt library for this:
[ # FreeBSD has a gnugetopt library for this:
AC_CHECK_LIB([gnugetopt],[getopt_long],
AC_CHECK_LIB([gnugetopt],[getopt_long],
[AC_DEFINE(HAVE_GETOPT_LONG,1,getopt support) LDFLAGS_vlc="${LDFLAGS_vlc} -lgnugetopt"],
[AC_DEFINE(HAVE_GETOPT_LONG,1,getopt support) LDFLAGS_vlc="${LDFLAGS_vlc} -lgnugetopt"],
...
@@ -357,7 +357,7 @@ if test "x${THREAD_LIB}" = "xerror"; then
...
@@ -357,7 +357,7 @@ if test "x${THREAD_LIB}" = "xerror"; then
AC_CHECK_LIB(c_r,main,THREAD_LIB="-lc_r")
AC_CHECK_LIB(c_r,main,THREAD_LIB="-lc_r")
fi
fi
if test "x${THREAD_LIB}" = "xerror"; then
if test "x${THREAD_LIB}" = "xerror"; then
AC_CHECK_FUNC(pthread_mutex_lock)
AC_CHECK_FUNC
S
(pthread_mutex_lock)
THREAD_LIB=""
THREAD_LIB=""
fi
fi
...
@@ -1270,7 +1270,7 @@ dnl
...
@@ -1270,7 +1270,7 @@ dnl
if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
then
then
have_ipv6=false
have_ipv6=false
AC_CHECK_FUNC(inet_pton,[have_ipv6=:],[
AC_CHECK_FUNC
S
(inet_pton,[have_ipv6=:],[
AC_CHECK_LIB(resolv,inet_pton,
AC_CHECK_LIB(resolv,inet_pton,
[have_ipv6=:
[have_ipv6=:
LDFLAGS_ipv6="${LDFLAGS_ipv6} -lresolv"])
LDFLAGS_ipv6="${LDFLAGS_ipv6} -lresolv"])
...
...
src/extras/libc.c
View file @
b70087de
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libc.c: Extra libc function for some systems.
* libc.c: Extra libc function for some systems.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: libc.c,v 1.
5 2002/12/27 15:31:56
sam Exp $
* $Id: libc.c,v 1.
6 2002/12/30 13:34:03
sam Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -90,6 +90,8 @@ int vlc_strcasecmp( const char *s1, const char *s2 )
...
@@ -90,6 +90,8 @@ int vlc_strcasecmp( const char *s1, const char *s2 )
{
{
i_delta
+=
'A'
-
'a'
;
i_delta
+=
'A'
-
'a'
;
}
}
s1
++
;
s2
++
;
}
}
return
i_delta
;
return
i_delta
;
...
@@ -117,6 +119,8 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n )
...
@@ -117,6 +119,8 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n )
{
{
i_delta
+=
'A'
-
'a'
;
i_delta
+=
'A'
-
'a'
;
}
}
s1
++
;
s2
++
;
}
}
return
i_delta
;
return
i_delta
;
...
...
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