diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch')
-rw-r--r-- | meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch b/meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch new file mode 100644 index 0000000000..ada9eb5e52 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Add a missing include needed for glibc 2.28 to avoid: | ||
2 | |||
3 | | ../../git/tools/backlight_helper.c: In function 'main': | ||
4 | | ../../git/tools/backlight_helper.c:54:34: error: implicit declaration of function 'major' [-Werror=implicit-function-declaration] | ||
5 | | if (fd < 0 || fstat(fd, &st) || major(st.st_dev)) | ||
6 | | ^~~~~ | ||
7 | | ../../git/tools/backlight_helper.c:54:34: warning: nested extern declaration of 'major' [-Wnested-externs] | ||
8 | | cc1: some warnings being treated as errors | ||
9 | | Makefile:666: recipe for target 'backlight_helper.o' failed | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | RP 2018/8/12 | ||
13 | |||
14 | Index: git/tools/backlight_helper.c | ||
15 | =================================================================== | ||
16 | --- git.orig/tools/backlight_helper.c | ||
17 | +++ git/tools/backlight_helper.c | ||
18 | @@ -8,6 +8,7 @@ | ||
19 | |||
20 | #include <sys/types.h> | ||
21 | #include <sys/stat.h> | ||
22 | +#include <sys/sysmacros.h> | ||
23 | |||
24 | #if MAJOR_IN_MKDEV | ||
25 | #include <sys/mkdev.h> | ||