[FFmpeg-devel] [PATCHv2] avdevice/fbdev_common: fix compilation with older kernels

Ingo Brückl ib at wupperonline.de
Thu Oct 24 16:52:49 CEST 2013


This will avoid errors due to conflicting declarations
with linux kernels prior to 2.6.30.

Signed-off-by: Ingo Brückl <ib at wupperonline.de>
---
 libavdevice/fbdev_common.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavdevice/fbdev_common.h b/libavdevice/fbdev_common.h
index ecbb825..3aec2a3 100644
--- a/libavdevice/fbdev_common.h
+++ b/libavdevice/fbdev_common.h
@@ -23,7 +23,11 @@
 #ifndef AVDEVICE_FBDEV_COMMON_H
 #define AVDEVICE_FBDEV_COMMON_H

+#ifndef __KERNEL_STRICT_NAMES
+#define __KERNEL_STRICT_NAMES
 #include <linux/fb.h>
+#undef __KERNEL_STRICT_NAMES
+#endif
 #include "libavutil/pixfmt.h"

 enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo);
--
1.7.10



More information about the ffmpeg-devel mailing list