]> git.sesse.net Git - vlc/blobdiff - src/misc/mtime.c
macosx: Fix crashlog opening.
[vlc] / src / misc / mtime.c
index 79490962843d5a88b7a5c56f26e29c3d698e34cc..9966e473bec8f5a046fcf1b92ccbb132331bba48 100644 (file)
@@ -33,7 +33,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 
 #include <time.h>                      /* clock_gettime(), clock_nanosleep() */
 #include <assert.h>
@@ -328,7 +328,7 @@ void mwait( mtime_t date )
      * do not even bother the system timer. */
     date -= mprec();
 
-#if 0 && defined (HAVE_CLOCK_NANOSLEEP)
+#if defined (HAVE_CLOCK_NANOSLEEP)
     lldiv_t d = lldiv( date, 1000000 );
     struct timespec ts = { d.quot, d.rem * 1000 };