diff --git a/srcpkgs/xfce4-diskperf-plugin/patches/fix-sysmacros_h.patch b/srcpkgs/xfce4-diskperf-plugin/patches/fix-sysmacros_h.patch new file mode 100644 index 00000000000..fc3fe35dea4 --- /dev/null +++ b/srcpkgs/xfce4-diskperf-plugin/patches/fix-sysmacros_h.patch @@ -0,0 +1,13 @@ +--- panel-plugin/devperf.c 2018-11-02 10:31:36.750842536 +0100 ++++ panel-plugin/devperf.c 2018-11-02 10:33:18.000838499 +0100 +@@ -39,8 +35,8 @@ + #include + #include ++#include + /* for major() and minor() */ +-#define _BSD_SOURCE +-#include ++#include + + + #if defined(__linux__) diff --git a/srcpkgs/xfce4-diskperf-plugin/template b/srcpkgs/xfce4-diskperf-plugin/template index 408a56512bb..e47cd4c1c0d 100644 --- a/srcpkgs/xfce4-diskperf-plugin/template +++ b/srcpkgs/xfce4-diskperf-plugin/template @@ -1,7 +1,7 @@ # Template file for 'xfce4-diskperf-plugin' pkgname=xfce4-diskperf-plugin version=2.6.1 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="pkg-config intltool" makedepends="xfce4-panel-devel" @@ -12,9 +12,6 @@ homepage="https://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin" distfiles="https://archive.xfce.org/src/panel-plugins/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2" checksum=212ddc742be3eecb6ad5554e1b1df03d5685cb71f48a558d5f895de37c57e4fa -pre_build() { - sed -i '//a#include ' panel-plugin/devperf.c -} post_install() { vlicense COPYING }