Skip to content

Commit

Permalink
error: 'linux/fb.h' file not found
Browse files Browse the repository at this point in the history
   29 | #include <linux/fb.h>
      |          ^~~~~~~~~~~~
error: use of undeclared identifier 'FBIOGET_VSCREENINFO'
 1254 |         if (ioctl(fd, FBIOGET_VSCREENINFO, &vsinfo) < 0)
      |                       ^
  • Loading branch information
rosorio committed Mar 24, 2024
1 parent abb792c commit 7d261ab
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions media_softlet/linux/common/codec/ddi/dec/ddi_decode_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,39 @@

#include <sys/ioctl.h>
#include <fcntl.h>
#if defined(__linux__)
#include <linux/fb.h>
#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__sun)
#include <sys/fbio.h>
# if defined(__sun)
#define DEFAULT_FBDEV "/dev/fb"
# else
#define DEFAULT_FBDEV "/dev/ttyv0"
# endif
#define FBIOGET_VSCREENINFO FBIOGTYPE
#define fb_var_screeninfo fbtype
#define xres fb_width
#define yres fb_height
#elif defined(__NetBSD__) || defined(__OpenBSD__)
#include <dev/wscons/wsconsio.h>
# if defined(__OpenBSD__)
#define DEFAULT_FBDEV "/dev/ttyC0"
# else
#define DEFAULT_FBDEV "/dev/ttyE0"
# endif
#define FBIOGET_VSCREENINFO WSDISPLAYIO_GINFO
#define fb_var_screeninfo wsdisplay_fbinfo
#define xres width
#define yres height
#else
#warning "Cannot query framebuffer properties on this platform."
#define DEFAULT_FBDEV "/dev/fb0"
#define FBIOGET_VSCREENINFO 0
struct fb_var_screeninfo {
uint32_t xres;
uint32_t yres;
};
#endif

#include "ddi_decode_functions.h"
#include "media_libva_util_next.h"
Expand Down

0 comments on commit 7d261ab

Please sign in to comment.