aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/files/patch-lavtools__lavvideo.c
blob: daef5d24f0eb4d216e06c243da4e2b7fe17b9cef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- lavtools/lavvideo.c.orig	2021-09-05 06:14:13 UTC
+++ lavtools/lavvideo.c
@@ -49,6 +49,7 @@ Copyright by Gernot Ziegler.
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 
+#ifdef __linux
 #include <linux/types.h>
 /* Because of some really cool feature in video4linux1, also known as
  * 'not including sys/types.h and sys/time.h', we had to include it
@@ -63,6 +64,7 @@ Copyright by Gernot Ziegler.
  * errors here, check your linux/time.h && sys/time.h header setup.
  */
 #define _LINUX_TIME_H
+#endif
 #include <linux/videodev.h>
 
 #include <videodev_mjpeg.h>