Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
d46bb4f4
Commit
d46bb4f4
authored
Jul 14, 2003
by
gbazin
Browse files
* configure.ac, modules/control/http.c: compilation fix for platforms without ctime_r().
parent
28c5e660
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
d46bb4f4
dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.2
8
2003/07/1
1
1
1:58:12
gbazin Exp $
dnl $Id: configure.ac,v 1.2
9
2003/07/1
4
1
6:10:20
gbazin Exp $
AC_INIT(vlc,0.6.0)
...
...
@@ -244,7 +244,7 @@ CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcd
dnl Check for system libs needed
need_libc=false
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r)
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r
ctime_r
)
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof lseek)
...
...
modules/control/http.c
View file @
d46bb4f4
...
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: http.c,v 1.1
4
2003/07/1
2 00:56:18 fenrir
Exp $
* $Id: http.c,v 1.1
5
2003/07/1
4 16:10:20 gbazin
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -943,7 +943,7 @@ static mvar_t *mvar_FileSetNew( char *name, char *psz_dir )
/* convert all / to native separator */
#if defined( WIN32 )
while
(
p
=
strchr
(
psz_dir
,
'/'
)
)
while
(
(
p
=
strchr
(
psz_dir
,
'/'
)
)
)
{
*
p
=
'\\'
;
}
...
...
@@ -1079,8 +1079,13 @@ static mvar_t *mvar_FileSetNew( char *name, char *psz_dir )
mvar_AppendNewVar
(
f
,
"size"
,
tmp
);
/* FIXME memory leak FIXME */
#ifdef HAVE_CTIME_R
ctime_r
(
&
stat_info
.
st_mtime
,
tmp
);
mvar_AppendNewVar
(
f
,
"date"
,
tmp
);
#else
mvar_AppendNewVar
(
f
,
"date"
,
ctime
(
&
stat_info
.
st_mtime
)
);
#endif
#else
mvar_AppendNewVar
(
f
,
"type"
,
"unknown"
);
mvar_AppendNewVar
(
f
,
"size"
,
"unknown"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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