diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-11 14:54:38 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-15 08:20:06 -0700 |
commit | c978a626bdb3fbcf54bd96eb4ef29427795d0269 (patch) | |
tree | 1e25c15bddc909dcf14983304b747e831a3e3809 /meta-xfce/recipes-panel-plugins | |
parent | 00eb88d1ce5c53d02b5a9a70af09f2e714e5234e (diff) | |
download | meta-openembedded-c978a626bdb3fbcf54bd96eb4ef29427795d0269.tar.gz |
xfce4-diskperf-plugin: Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-xfce/recipes-panel-plugins')
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin/0001-panel-plugin-Include-sys-sysmacros.h-for-major-minor.patch b/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin/0001-panel-plugin-Include-sys-sysmacros.h-for-major-minor.patch new file mode 100644 index 000000000..007d3e585 --- /dev/null +++ b/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin/0001-panel-plugin-Include-sys-sysmacros.h-for-major-minor.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From c35a8cb24e8adafb11cbc261de37d97244e55927 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 11 Aug 2018 10:08:27 -0700 | ||
4 | Subject: [PATCH] panel-plugin: Include sys/sysmacros.h for major/minor | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | glibc 2.28+ needs it | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | Cc: Andreas Müller <schnitzeltony@googlemail.com> | ||
15 | --- | ||
16 | panel-plugin/devperf.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/panel-plugin/devperf.c b/panel-plugin/devperf.c | ||
20 | index 175fd44..cb2e88a 100644 | ||
21 | --- a/panel-plugin/devperf.c | ||
22 | +++ b/panel-plugin/devperf.c | ||
23 | @@ -34,6 +34,7 @@ | ||
24 | #include <errno.h> | ||
25 | #include <sys/time.h> | ||
26 | /* for major() and minor() */ | ||
27 | +#include <sys/sysmacros.h> | ||
28 | #define _BSD_SOURCE | ||
29 | #include <sys/types.h> | ||
30 | |||
diff --git a/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin_2.6.1.bb b/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin_2.6.1.bb index 161b2bb2b..dc7f1fcd9 100644 --- a/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin_2.6.1.bb +++ b/meta-xfce/recipes-panel-plugins/diskperf/xfce4-diskperf-plugin_2.6.1.bb | |||
@@ -5,5 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d3e627798d6a60bece47aa8b3532e1f1" | |||
5 | 5 | ||
6 | inherit xfce-panel-plugin | 6 | inherit xfce-panel-plugin |
7 | 7 | ||
8 | SRC_URI = "http://archive.xfce.org/src/panel-plugins/${BPN}/${@'${PV}'[0:3]}/${BPN}-${PV}.tar.bz2 \ | ||
9 | file://0001-panel-plugin-Include-sys-sysmacros.h-for-major-minor.patch \ | ||
10 | " | ||
8 | SRC_URI[md5sum] = "63d5f03934c2dbddb3ad7bf7f535cc23" | 11 | SRC_URI[md5sum] = "63d5f03934c2dbddb3ad7bf7f535cc23" |
9 | SRC_URI[sha256sum] = "212ddc742be3eecb6ad5554e1b1df03d5685cb71f48a558d5f895de37c57e4fa" | 12 | SRC_URI[sha256sum] = "212ddc742be3eecb6ad5554e1b1df03d5685cb71f48a558d5f895de37c57e4fa" |