The struct timeb is used on Windows only.
@@ -20,6 +20,9 @@
#include "obs-ffmpeg-url.h"
#include <srt/srt.h>
#include <libavformat/avformat.h>
+#ifdef _WIN32
+#include <sys/timeb.h>
+#endif
#define POLLING_TIME 100 /// Time in milliseconds between interrupt check
@@ -6,7 +6,6 @@
#include <libavutil/time.h>
#include <libavutil/error.h>
#include <stdio.h>
-#include <sys/timeb.h>
#include <time.h>
#define HTTP_PROTO "http"