1 |
--- lavtools/lavvideo.c.orig |
2 |
+++ lavtools/lavvideo.c |
3 |
@@ -49,6 +49,7 @@ |
4 |
#include <sys/stat.h> |
5 |
#include <sys/ioctl.h> |
6 |
|
7 |
+#ifdef __linux |
8 |
#include <linux/types.h> |
9 |
/* Because of some really cool feature in video4linux1, also known as |
10 |
* 'not including sys/types.h and sys/time.h', we had to include it |
11 |
@@ -63,6 +64,7 @@ |
12 |
* errors here, check your linux/time.h && sys/time.h header setup. |
13 |
*/ |
14 |
#define _LINUX_TIME_H |
15 |
+#endif |
16 |
#include <linux/videodev.h> |
17 |
|
18 |
#include <videodev_mjpeg.h> |