瀏覽代碼

V4L/DVB (5893): DVB: fix includes of video.h when __KERNEL__ is undefined

linux/dvb/video.h uses types __u32, __s32, etc., but does not include
any header defining those when __KERNEL__ is not defined.

Fix this by including asm/types.h when __KERNEL__ is not defined.

Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Anssi Hannula 18 年之前
父節點
當前提交
89f50bf637
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/linux/dvb/video.h

+ 1 - 0
include/linux/dvb/video.h

@@ -29,6 +29,7 @@
 #ifdef __KERNEL__
 #ifdef __KERNEL__
 #include <linux/types.h>
 #include <linux/types.h>
 #else
 #else
+#include <asm/types.h>
 #include <stdint.h>
 #include <stdint.h>
 #include <time.h>
 #include <time.h>
 #endif
 #endif