]> git.sesse.net Git - vlc/commitdiff
use mtrace() only with glibc
authorRafaël Carré <funman@videolan.org>
Sat, 8 Mar 2008 11:58:16 +0000 (12:58 +0100)
committerRafaël Carré <funman@videolan.org>
Sat, 8 Mar 2008 11:58:16 +0000 (12:58 +0100)
modules/codec/xvmc/xxmc.c

index c6c6f1d62da4c3a07c6d7b718f6131906cd7d6b3..c0d27cd8e5faf693183ab4c4cf70db7aa40cb546 100644 (file)
@@ -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 */