]> git.sesse.net Git - vlc/commitdiff
* ftime does not exist on OSX, so we need to implement it ourselves
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 20 Mar 2005 18:19:01 +0000 (18:19 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 20 Mar 2005 18:19:01 +0000 (18:19 +0000)
src/misc/vlm.c

index f11480a36ef0138ee89cf11138626ccb8c83028a..238540cf54015293d88dfa49cf088afc5b57971d 100644 (file)
@@ -1249,6 +1249,21 @@ int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, char *psz_id,
 /*****************************************************************************
  * Schedule handling
  *****************************************************************************/
+#ifdef __APPLE__
+int ftime(struct timeb *tp)
+{
+     struct timeval tv;
+
+     gettimeofday(&tv, NULL);
+     tp->time = tv.tv_sec;
+     tp->millitm = tv.tv_usec / 1000;
+     tp->timezone = 0;
+     tp->dstflag = 0;
+     
+     return (0);
+}
+#endif
+
 static int64_t vlm_Date()
 {
     struct timeb tm;