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
d46bb4f4
Commit
d46bb4f4
authored
Jul 14, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure.ac, modules/control/http.c: compilation fix for platforms without ctime_r().
parent
28c5e660
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
configure.ac
configure.ac
+2
-2
modules/control/http.c
modules/control/http.c
+7
-2
No files found.
configure.ac
View file @
d46bb4f4
dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.2
8 2003/07/11 11:58:12
gbazin Exp $
dnl $Id: configure.ac,v 1.2
9 2003/07/14 16: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/12 00:56:18 fenrir
Exp $
* $Id: http.c,v 1.1
5 2003/07/14 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
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