[vlc-devel] commit: use mtrace() only with glibc ( Rafaël Carré )
git version control
git at videolan.org
Sat Mar 8 12:59:26 CET 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Mar 8 12:58:16 2008 +0100| [b875b0fd622ce4049a9c0eb861f73b53e4d7ad8b]
use mtrace() only with glibc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b875b0fd622ce4049a9c0eb861f73b53e4d7ad8b
---
modules/codec/xvmc/xxmc.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/codec/xvmc/xxmc.c b/modules/codec/xvmc/xxmc.c
index c6c6f1d..c0d27cd 100644
--- a/modules/codec/xvmc/xxmc.c
+++ b/modules/codec/xvmc/xxmc.c
@@ -35,7 +35,9 @@
#include <vlc_codec_synchro.h>
#include <unistd.h>
-#include <mcheck.h>
+#ifdef __GLIBC__
+ #include <mcheck.h>
+#endif
#include "mpeg2.h"
#include "attributes.h"
@@ -117,7 +119,9 @@ static int OpenDecoder( vlc_object_t *p_this )
FILE *f_wd_dec;
msg_Dbg(p_dec, "OpenDecoder Entering");
+#ifdef __GLIBC__
mtrace();
+#endif
if( p_dec->fmt_in.i_codec != VLC_FOURCC('m','p','g','v') &&
p_dec->fmt_in.i_codec != VLC_FOURCC('m','p','g','1') &&
/* Pinnacle hardware-mpeg1 */
More information about the vlc-devel
mailing list