[vlc-devel] commit: Remove dead old <sys/times.h> use ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jan 11 19:20:07 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 11 19:43:37 2010 +0200| [c6bd2dd5a2a7c14057b9036311d0670e6cf73fae] | committer: Rémi Denis-Courmont
Remove dead old <sys/times.h> use
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6bd2dd5a2a7c14057b9036311d0670e6cf73fae
---
configure.ac | 2 +-
src/video_output/video_output.c | 15 ---------------
2 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5f88c3d..12fd310 100644
--- a/configure.ac
+++ b/configure.ac
@@ -860,7 +860,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
dnl Check for headers
AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.h)
-AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h sys/mount.h)
+AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/ioctl.h sys/stat.h sys/mount.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index da9e2b8..5be9278 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -38,11 +38,6 @@
#include <stdlib.h> /* free() */
#include <string.h>
-
-#ifdef HAVE_SYS_TIMES_H
-# include <sys/times.h>
-#endif
-
#include <vlc_vout.h>
#include <vlc_filter.h>
@@ -1446,16 +1441,6 @@ static void CleanThread( vout_thread_t *p_vout )
*****************************************************************************/
static void EndThread( vout_thread_t *p_vout )
{
-#ifdef STATS
- {
- struct tms cpu_usage;
- times( &cpu_usage );
-
- msg_Dbg( p_vout, "cpu usage (user: %d, system: %d)",
- cpu_usage.tms_utime, cpu_usage.tms_stime );
- }
-#endif
-
/* FIXME does that function *really* need to be called inside the thread ? */
/* Detach subpicture unit from both input and vout */
More information about the vlc-devel
mailing list