Commit 251d7d33 authored by Björn Isacsson's avatar Björn Isacsson
Browse files

Potential Mac fix

parent e873f88a
......@@ -9,8 +9,6 @@
static int frame_nr = START_FRAME;
#ifdef __MACH__
#include <sys/time.h>
clock_gettime is not implemented on OSX
int clock_gettime(int clk_id, struct timespec* t) {
struct timeval now;
if(gettimeofday(&now, NULL));
......
......@@ -5,6 +5,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#ifdef __MACH__
#include <sys/time.h>
#endif
#define IMAGE_JPEG "image/jpeg"
......@@ -24,6 +27,10 @@ struct _media_frame {
typedef struct _media_stream media_stream;
typedef struct _media_frame media_frame;
#ifdef __MACH__
int clock_gettime(int clk_id, struct timespec* t);
#endif
/* open a fake camera stream.
* the parameters are ignored
*/
......
Supports Markdown
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