obs-ffmpeg: Do not include sys/timeb.h on non-Windows system

The struct timeb is used on Windows only.
This commit is contained in:
Norihiro Kamae
2023-08-23 15:46:12 +09:00
committed by Lain
parent 1476033684
commit e6d007b378
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -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
-1
View File
@@ -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"