[FFmpeg-user] Build error
Ingo Brückl
ib at wupperonline.de
Thu Oct 24 16:04:50 CEST 2013
Carl Eugen Hoyos wrote on Thu, 24 Oct 2013 13:30:24 +0000 (UTC):
> Ingo Brückl <ib <at> wupperonline.de> writes:
>>
>> Current git head:
>>
>> CC libavdevice/fbdev_common.o
>> In file included from /usr/include/stdlib.h:320,
>> from ./libavutil/common.h:34,
>> from libavdevice/fbdev_common.c:24:
>> /usr/include/sys/types.h:52: error: conflicting types for 'ino_t'
>> /usr/include/linux/types.h:14: error: previous declaration of 'ino_t' was here
Does the following make sense?
diff --git a/libavdevice/fbdev_common.h b/libavdevice/fbdev_common.h
index ecbb825..c3ed8d0 100644
--- a/libavdevice/fbdev_common.h
+++ b/libavdevice/fbdev_common.h
@@ -23,8 +23,12 @@
#ifndef AVDEVICE_FBDEV_COMMON_H
#define AVDEVICE_FBDEV_COMMON_H
-#include <linux/fb.h>
#include "libavutil/pixfmt.h"
+#ifndef __KERNEL_STRICT_NAMES
+#define __KERNEL_STRICT_NAMES
+#include <linux/fb.h>
+#undef __KERNEL_STRICT_NAMES
+#endif
enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo);
Ingo
More information about the ffmpeg-user
mailing list