Commit 94cf1d82 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* ftime does not exist on OSX, so we need to implement it ourselves

parent dd2be923
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment